Languages and Scripting

comprehensive list for HPUX compiler options and Linux equivalents if possible

 
JamesJones
Occasional Visitor

comprehensive list for HPUX compiler options and Linux equivalents if possible

I'm researching the meaning of HPUX compiler optins in makefiles - parameters like -DSLXMX_ENABLE and RMC=YES 

- the meaning / meanings

- what they "do"

- Linux equivilents?

Thank you in advance

1 REPLY 1
Steven Schweda
Honored Contributor

Re: comprehensive list for HPUX compiler options and Linux equivalents if possible

> I'm researching the meaning of HPUX compiler optins

   Why?  Do you have an HP-UX system, or are you looking at porting old
code to GNU/Linux, or what?  HP-UX version?  Which compiler/version?  A
Web search should find abundant documentation for a variety of C
compilers which have been used on HP-UX (including gcc).

> [...] -DSLXMX_ENABLE [...]

   Same as any other UNIX-like C compiler?  "-D<anything>" defines the C
macro "<anything>" (as 1, I'd guess).  Look for "SLXMX_ENABLE" in your
code?

> [...] RMC=YES [...]

   Where did you find that?  With no "-", I doubt that it's a C compiler
option.  If it was part of a a "make" command, then it might be
defining a "make" macro ("RMC" to "YES").


> - what they "do"

   Apparently, they define macros.  With my weak psychic powers, I have
no idea what those macros might do in your (invisible) code.

> - Linux equivilents?

   I'd guess no difference.

   It might help some if you provided even a little context -- actual
commands where these things appear, why you're doing this "research",
and so on.  What is the actual problem which you are trying to solve?
The fact that you found a "-D" option puzzling suggests that you might
need to know more than you do before attempting this task (whatever it
is).