assembly
Do programming language compilers first translate to assembly or directly to machine code?
gcc actually produces assembler and assembles it using the as assembler. Not all compilers do this – the MS compilers produce object code directly, though you can make them generate assembler output. Translating assembler to object code is a pretty simple process, at least compared with C→Assembly or C→Machine-code translation. Some compilers produce other high-level … Read more
How to run a single line of assembly, then see [R1] and condition flags
I do stuff like this all the time on my x86 desktop, using gdb to single-step code. Usually with x86 instructions, but it’s doable for ARM cross-development, too. Build with gcc -nostdlib foo.S, and it should set the default entry point to the beginning of your .text section. You do get a warning from the … Read more