Appendix B. AIX to Linux Reference Tables

In this appendix

AIX and Linux C Compiler Options Table

Table B-1. AIX XLC/C++ and gcc/g++ Compiler Switches Comparison Table

C/C++ VisualAge for AIX Option[1]

GNU gcc Option[2]

Description (AIX-Based)

-+

-x c++

(C++) Compiles any file, filename.nnn, as a C++ language file, where nnn is any suffix other than .o, .a, or .s.

-#

-###

Traces the compilation without doing anything.

-q32

-q64

-m32

-m643

Selects 32- or 64-bit compiler mode. Additional -m options for GCC are available. Refer to GNU.

-qlanglvl=<option>

-fstd=<OPTION> ...

Get UNIX to Linux now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.