Forum Discussion
Altera_Forum
Honored Contributor
21 years agoCan I compile the disambly code to executable?
Can I disamble an elf file into an assembly file and then compile this assembly file into an executable? Thanks!
Altera_Forum
Honored Contributor
21 years agoIf you are indeed trying to hand-optimize the assembly code created by the compiler,
I recommend that you use the -S option to gcc. Instead of creating a .o file, it will generate a .s file containing the assembly code that it generated. You can then edit this file and then assemble it with gcc.