3 ms·
I don't know a lot about compilers or assembly but the ASM output seems a longer than it needs to be for just printing hello world. Can anyone provide some insi
by ancarda 11y ago
I don't know a lot about compilers or assembly but the ASM output seems a longer than it needs to be for just printing hello world. Can anyone provide some insight? Is it just long to provide a good foundation for bigger programs?
- thristian 11y agoAre you talking about Debug mode or Release mode? I don't know much about assembly, but in release mode it looks like you wind up with just some setup code (starting from the label "_ZN4main20h79637ebf645455fbeaaE") which is probably doing generic process-startup stuff, and thenthe actual body of main (starting from the label "main"). All the directives starting with a "." are meta-data directives, they're not actually instructions the CPU executes.