You are here |
gcher.com | ||
| | | |
projectf.io
|
|
| | | | The Godbolt Compiler Explorer is a fantastic tool for assembler programmers. In this post, I show you how to use Compiler Explorer to generate RISC-V assembly code and offer some ideas to make best use of this tool. | |
| | | |
blog.nuculabs.de
|
|
| | | | As I've been reading Professional Assembly Language, I've come across chapter 13 and I liked it so much that I'm going to write a blog post about it. The book is quite nice if you're interested in assembly for Linux. Extended ASM format let's you write assembly code that interacts with any type of C data, such as local variables, strings, numbers, goto labels and so on. The format produces cleaner, safer and more efficient code than the Basic ASM format. | |
| | | |
blog.nuculabs.dev
|
|
| | | | As I've been reading Professional Assembly Language, I've come across chapter 13 and I liked it so much that I'm going to write a blog post about it. The book is quite nice if you're interested in assembly for Linux. Extended ASM format let's you write assembly code that interacts with any type of C data, such as local variables, strings, numbers, goto labels and so on. The format produces cleaner, safer and more efficient code than the Basic ASM format. | |
| | | |
probablydance.com
|
|
| | Here is a rough approximation of float multiplication (source): float rough_float_multiply(float a, float b) { constexpr uint32_t bias = 0x3f76d000; return bit_cast(bit_cast(a) + bit_cast(b) - bias); } We're casting the floats to ints, adding them, adjusting the exponent, and returning as float. If you think about it for a second you will realize that since... |