Can anyone direct me to an IBM resource where I can download some
documentation on the xIC compiler?
If not, my specific question for today is about the xIC compiler defined
defines (not in headers). For example: _IBMR2. I very much appreciate a
complete list.
Can anyone help?
Thanks much,
Bruce.
--
Fletcher Glenn
email flet...@resolute.com
man xIC
it says "There is not an entry for xIC."
And "info" gives "not found". I guess that means it's not installed.
Any idea what I'm doing wrong?
Thanks,
Bruce.
Fletcher Glenn wrote in message <6t6rda$s0e$2...@nntp2.ba.best.com>...
xlC: /etc/xlC.cfg /usr/bin/xlC /usr/lib/xlC /usr/share/man/cat1/xlC.1 /usr/share/man/cat1/xlC128.1
--
Fletcher Glenn
email flet...@resolute.com
> man xIC
>
> it says "There is not an entry for xIC."
Did you type exactly the above (x-ray India Charlie)? If so, it should
be xlC (x-ray lima Charlie).
If not, check if your manual page for xlC is installed with the lslpp
command.
It isn't xIC, it's xlC. Dumb, dumb, dumb.
For those running a better font than I, the upper case I ("I"ndex) and lower
case l ("l"ower) look absolutely indentical here. lIlIlIlIlIlIlIlIl <- No
change at all.
Anyway, now that I have man xlC working, it lists a lot of compiler options,
but not the built in compiler defines. Anyone know of a complete list?
Thanks,
Bruce.
Fletcher Glenn wrote in message <6t736p$2ec$1...@nntp2.ba.best.com>...
: I'm very new to the IBM RS/6000, AIX, and Unix in general. I've got 40
: pounds of IBM documentation but I can't find much of anything on the xlC
: compiler.
: Can anyone direct me to an IBM resource where I can download some
: documentation on the xIC compiler?
: If not, my specific question for today is about the xIC compiler defined
: defines (not in headers). For example: _IBMR2. I very much appreciate a
: complete list.
Note: I assume you were asking about the C compiler xlC (not I as in IBM).
1) [AIX specific]: look at /etc/xlC.cfg. It contains the stanzas for
all the possible incantations of the C compilers. Towards the end of
the file you'll find the options common to most incantations (under the
options entry for the DEFLT use).
2) [more general]: invoke the compiler with the verbose flag (-v for AIX,
IRIX, DU and gcc, the rest I don't know). This will show the invocation of
the C preprocessor with all it's {un,}defines.
HTH,
--
Juan Gallego
Little ({sys,net}-{admin,hacker}) Boss
Bruce.
Bjorn Reese wrote in message <6t8h4d$vqa$1...@news.net.uni-c.dk>...
I was really looking for the ones predefined by the compiler (not in headers
or command line). In the Microsoft world, examples are __LINE__, __DATE__,
_MSC_VER, etc. I assume there are some in this compiler too, or am I
barking up the wrong tree?
Thanks,
Bruce.
Juan Gallego wrote in message <6t8oe2$j...@sifon.cc.mcgill.ca>...
>In article <6t68uh$1...@news9.noc.netcom.net>
>posted to comp.unix.programmer on Wed, 9 Sep 1998 11:04:33 -0500,
>
> I think I figured this one out. This stupid case sensitivity is going to
> be the death of me.
[deletia]
> Anyway, now that I have man xlC working, it lists a lot of compiler options,
> but not the built in compiler defines. Anyone know of a complete list?
>
> Thanks,
> Bruce.
IIRC, the original question had something to do with _IBMR2 and where
this was defined. Take a look at /etc/xlC.cfg, which determines the
behavior of the various aliases for xlC ( cc, cc_r, xlc_r4 and c89 for
example ). _IBMR2 is listed in the "DEFLT" stanza at the end of that
file ( if your /etc/xlC.cfg looks like mine ). If that's still not what
you are looking for, you might ask your rep to get a hold of the
xlC User's Guide ( I can't find mine presently, otherwise I'd provide
the document ID )
regards,
ejo
--
Erik O'Shaughnessy:eriko at austin.ibm.com:[838|678]-2622:bldg 905/7F-18
Performance Design Analysis Tools:Division Formerly Known As RS/6000:IBM
When I asked about _IBMR2, I should asked one more question. What does
_IBMR2 signify? Revision 2? Revision of what? The other ones seem fairly
obvious.
Thanks,
Bruce.
Erik OShaughnessy wrote in message ...
> When I asked about _IBMR2, I should asked one more question. What does
> _IBMR2 signify? Revision 2? Revision of what? The other ones seem fairly
> obvious.
IBM RISC the second attempt I suppose. The first RISC was the one in the
IBM RT PC.
--
Jens-Uwe Mager <pgp-mailto:62CFDB25>
Bruce.
Jens-Uwe Mager wrote in message ...
: > I think I figured this one out. This stupid case sensitivity is going to
: > be the death of me.
: [deletia]
: > Anyway, now that I have man xlC working, it lists a lot of compiler options,
: > but not the built in compiler defines. Anyone know of a complete list?
: >
: > Thanks,
: > Bruce.
Sorry 'bout chopping out so much....
I think the original poster wanted to know how to find out about all
the 'manifest constants' that are built into any particular compilation
system.
here's a link to a site:
ftp://ftp.cdrom.com/pub/infozip/OLD/beta/utils/
where there's a unix shellscript that goes to herculean efforts to
deduce all the predefined thingies. In that directory you should find
a file named:
definesXXX
where XXX is a version number (such as 3.18)
I don't know if it is good enough to deduce everything for any given
compiler, but it finds a lot of useful info. Give it a try!
Fred
--
---- Fred Smith -- fre...@fcshome.stoneham.ma.us -----------------------------
For the wages of sin is death,
but the gift of God is eternal life in Christ Jesus our Lord
------------------------------ Romans 6:23 (niv) ------------------------------
The program looks pretty interesting. Thanks for the reference!
Bruce.
Fred Smith wrote in message ...