assembly
How to run a program without an operating system?
Answer recommended by Intel
Is it possible to “decompile” a Windows .exe? Or at least view the Assembly?
With a debugger you can step through the program assembly interactively. With a disassembler, you can view the program assembly in more detail. With a decompiler, you can turn a program back into partial source code, assuming you know what it was written in (which you can find out with free tools such as PEiD … Read more
Using GCC to produce readable assembly?
If you compile with debug symbols (add -g to your GCC command line, even if you’re also using -O31), you can use objdump -S to produce a more readable disassembly interleaved with C source. >objdump –help […] -S, –source Intermix source code with disassembly -l, –line-numbers Include line numbers and filenames in output objdump -drwC … Read more
How do you get assembler output from C/C++ source in gcc?
Use the -S option to gcc (or g++), optionally with -fverbose-asm which works well at the default -O0 to attach C names to asm operands as comments. Less well at any optimization level, which you normally want to use to get asm worth looking at. gcc -S helloworld.c This will run the preprocessor (cpp) over … Read more
When is assembly faster than C? [closed]
Here is a real world example: Fixed point multiplies on old compilers. These don’t only come handy on devices without floating point, they shine when it comes to precision as they give you 32 bits of precision with a predictable error (float only has 23 bit and it’s harder to predict precision loss). i.e. uniform … Read more
How do I achieve the theoretical maximum of 4 FLOPs per cycle?
Answer recommended by Intel
Why does C++ code for testing the Collatz conjecture run faster than hand-written assembly?
Answer recommended by Intel