Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

xIC question

45 views
Skip to first unread message

Bruce Chastain

unread,
Sep 9, 1998, 3:00:00 AM9/9/98
to
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.

Can anyone help?

Thanks much,
Bruce.

Fletcher Glenn

unread,
Sep 9, 1998, 3:00:00 AM9/9/98
to
Have you looked at the xlC man page. There is a lot of information there.
The man page should have been automatically installed when the compiler
was installed and regardless of whether or not man pages were installed
on your system. Also try running the program "info" if it is installed
on your system.

--
Fletcher Glenn
email flet...@resolute.com

Bruce Chastain

unread,
Sep 9, 1998, 3:00:00 AM9/9/98
to
When I type:

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>...

Fletcher Glenn

unread,
Sep 9, 1998, 3:00:00 AM9/9/98
to
When I type "whereis xlC" I get:

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

Bjorn Reese

unread,
Sep 10, 1998, 3:00:00 AM9/10/98
to
Bruce Chastain (b...@pcqt.com) wrote:

> 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.

Bruce Chastain

unread,
Sep 10, 1998, 3:00:00 AM9/10/98
to

Fletcher Glenn wrote in message <6t736p$2ec$1...@nntp2.ba.best.com>...

>When I type "whereis xlC" I get:
>
>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
>
>In article <6t6t64$9...@news9.noc.netcom.net>, "Bruce Chastain"
<b...@pcqt.com> writes:
>>When I type:
>>
>>man xIC
>>
>>it says "There is not an entry for xIC."
>>

Bruce Chastain

unread,
Sep 10, 1998, 3:00:00 AM9/10/98
to
I think I figured this one out. This stupid case sensitivity is going to
be the death of me.

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>...

Juan Gallego

unread,
Sep 10, 1998, 3:00:00 AM9/10/98
to
In article <6t68uh$1...@news9.noc.netcom.net>
posted to comp.unix.programmer on Wed, 9 Sep 1998 11:04:33 -0500,
Bruce Chastain (b...@pcqt.com) wrote:

: 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 Chastain

unread,
Sep 10, 1998, 3:00:00 AM9/10/98
to
Thanks, that's exactly what the problem was.

Bruce.

Bjorn Reese wrote in message <6t8h4d$vqa$1...@news.net.uni-c.dk>...

Bruce Chastain

unread,
Sep 10, 1998, 3:00:00 AM9/10/98
to
Hey, the verbose option helped a lot. But I didn't know (until now) that
the _IBMR2 was a compiler command line defined define.

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,

>

Erik OShaughnessy

unread,
Sep 11, 1998, 3:00:00 AM9/11/98
to
"Bruce Chastain" <b...@pcqt.com> writes:

> 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

Bruce Chastain

unread,
Sep 11, 1998, 3:00:00 AM9/11/98
to
Thanks Erik, I really appreciate the info.

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 ...

Jens-Uwe Mager

unread,
Sep 11, 1998, 3:00:00 AM9/11/98
to
In article <6tbo9o$4...@news9.noc.netcom.net>, "Bruce Chastain"
<b...@pcqt.com> wrote:

> 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 Chastain

unread,
Sep 11, 1998, 3:00:00 AM9/11/98
to
Ah, RISC. Thanks for the help!

Bruce.

Jens-Uwe Mager wrote in message ...

Fred Smith

unread,
Sep 12, 1998, 3:00:00 AM9/12/98
to
Erik OShaughnessy (er...@austin.ibm.com) wrote:
: "Bruce Chastain" <b...@pcqt.com> writes:

: > 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) ------------------------------

Bruce Chastain

unread,
Sep 14, 1998, 3:00:00 AM9/14/98
to
Fred,

The program looks pretty interesting. Thanks for the reference!

Bruce.

Fred Smith wrote in message ...

0 new messages