How does the compiler determin on which platform it is running? -


in case of having application supported on 2 different operating systems. there specific implementation each operating system.i know how compiler know on platform running compiles implementation x , not y.

compilers take program written in high level language (e.g., c, rust, go) , produce executable specific os , architecture. if have compiler can support multiple oses , architectures, pass in appropriate parameters via command line flag or through configuration file. compiler try infer target os (assuming target os same os running compiler) via environment variables such "os" , "processor_architecture".


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -