Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can I generate two binaries (one 32-bit and one 64-bit) from a single source file?

binaries file source
0
Posted

Can I generate two binaries (one 32-bit and one 64-bit) from a single source file?

0

Yes. The Solaris compilers have compile-time flags that can create a resulting object file that is 32-bit or 64-bit. Both the 32-bit and the 64-bit portions of the system, including the kernel and libraries, are built from the same source files. 64-bit specific code in the header files and source files are defined using #ifdef as appropriate to support the single source file for both 32-bit and 64-bit.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.