News for hackers. Stuff that matters.
Re:RISC-V Assembly Programming by snvzz on Saturday July 08, 2023 @01:14AM (#36641539)
"Free" book. Actually a really annoying (to the point of unusable) dynamic-loading paginated html page. Surely nobody'd ever want to learn anything (much less RISC-V assembly) like this.

<!-- Created by pdf2htmlEX (https://github.com/coolwanglu/pdf2htmlex) -->

The PDF itself nowhere to be found, although I expect one will be generated by hackish means and uploaded somewhere soon. (edit: z-library and Anna's both have it)

The simulator is similarly locked behind the webbrowser, but seems to be at least based on an open source one[0]. Whether it has been modified is unclear.

0. https://github.com/antoniocgj/RISC-V-ALE

Re:RISC-V Assembly Programming by prabhu-yu on Saturday July 08, 2023 @01:27AM (#36641596)
I understand you. I had same thoughts.

Yet I posted this because- - Book is really good for learning RISC-V Assembly.

- There are plenty other RISC-V simulators. Use what you like. For learning each instruction one by one, I like the following sim. https://www.cs.cornell.edu/courses/cs3410/2019sp/riscv/inter...

- RISC-V has very small number of instructions (less than 100), compare this to ARM, X86 etc. By the way, word "REDUCED" in RISC does not mean less number of instructions in ISA. Rather it means, each instruction has significantly "REDUCED" functionality such that, it can be easily executed in single clock cycle, can be implemented with less gates etc. overall simplicity is main goal. Yet, I see, even ChatGPT told me that other way around until I pointed that ARM ISA (being RISC) has significantly higher number of instructions... . However, it told one thing very correctly: All RISC-V have Load-store model, where entire ISA can be devided into 2 parts: First part, instructions that purely work on cpu registers without ever making memory access. And second part, where instructions that only access the memory. This is fundamentally load store architecture which is one of the must part of RISC-V. But load-store can also be used in CISC.

Correct me if I am wrong here.

Last but not least: If I can turn time back and learn programming language, I would learn RISC-V assembly, ( not C or Python or JavaScript ...). In that sense, I am learning RISC-V and sharing it to others.

Re:RISC-V Assembly Programming by snvzz on Saturday July 08, 2023 @01:36AM (#36641631)
>Book is really good from learning RISC-V Assembly.

I'd suggest the spec or the "RISC-V Reader" book instead, particularly if you already know any other assembly language.

Re:RISC-V Assembly Programming by circuit10 on Saturday July 08, 2023 @09:25AM (#36644164)
I don’t think that’s a good way to measure whether AI thinks or not. Many humans might make that mistake but you wouldn’t then come to the conclusion that that person can’t think
Re:RISC-V Assembly Programming by _nalply on Saturday July 08, 2023 @01:27AM (#36641592)
Just print to PDF. Somewhat annoying but whatever. For me the correct scale seems to be "page width" or 75%.
Re:RISC-V Assembly Programming by gabegm on Saturday July 08, 2023 @04:34AM (#36642528)
This doesn't work for me, most pages are blank.
Re:RISC-V Assembly Programming by prabhu-yu on Saturday July 08, 2023 @06:07AM (#36642981)
Did you try print to pdf in browser?
Re:RISC-V Assembly Programming by squarefoot on Saturday July 08, 2023 @07:09AM (#36643306)
I got the same result: all pages after the Foreword at page 4 and except a couple towards the end are blank. I tried printing to PDF, then the Save to PDF function of the FoxyTab Firefox extension; I also tried to save it a a single file using the SingleFileZ extension that saves pages and data using a compressed single file (thus no conversion to PDF) which is directly readable by Firefox. No way, always blank pages after the Foreword. Not sure if that's a protection scheme or a bad conversion from pdf, but to me being forced to be online and use a browser to read a book kills any interest.
Re:RISC-V Assembly Programming by prabhu-yu on Saturday July 08, 2023 @09:18AM (#36644103)
About protection: I see book is in github as a public repo. I will try to print with my pdf tools. Please give me some time.
Re:RISC-V Assembly Programming by snvzz on Saturday July 08, 2023 @12:30PM (#36645947)
Just link the repo?

With the right tools, it can likely be used to compile the book into a proper PDF, rather than using print workarounds.

Re:RISC-V Assembly Programming by prabhu-yu on Saturday July 08, 2023 @12:56PM (#36646253)
Repo Link: https://github.com/eborin/riscv-programming I may be wrong. I am not able to see the content of the book. (I thought, above repo has the content.). More ever, I see copyright notice in the book. So, it is open for reading purpose only.

Seems, reading the book on the browser is the only option, that is how I did it since many weeks.

Re:RISC-V Assembly Programming by snvzz on Saturday July 08, 2023 @01:18PM (#36646448)
This is the generated book. Pretty sad.

Fortunately, as mentioned in my post at the root level, there's PDFs available in the usual archivist libraries.