c++ - How does the compiler know about the instruction set of my CPU? -
i've read that
the compiler converts code written in human-readable programming language machine code representation understood processor.
how compiler know instruction set of cpu?
any reference understand job of assembler, linker , loader helpful.
how compiler know instruction set of cpu?
most compilers know how emit code specific cpu (or small number of them). each target cpu requires write compiler back-end it, , task non-trivial.
gcc supports large variety of targets, gcc built emit code few targets. in other words, can build gcc emit code x86_64
, i*86
processors, , can build copy emit code powerpc
, can't build single gcc produce code three.
any reference understand job of assembler, linker , loader
google search above terms led me here.
Comments
Post a Comment