From: "John E. Malmberg" <wb8tyw@qsl.net>
Subject: Re: Question : '#pragma auto_inline off' equiv. for OpenVMS Alpha?
Date: 2000/10/15 [thread overview]
Message-ID: <sukt3a2ahed7ff@corp.supernews.com> (raw)
In-Reply-To: UMEG4e5b5KFT@cartman.ourservers.net
"Robert Alan Byer" <byer@mail.ourservers.network> wrote
in message news:UMEG4e5b5KFT@cartman.ourservers.net...
>
> Question...
>
> I'm porting over a Unix application to OpenVMS Alpha and all is
> fine and well with one exception.
>
> One of the modules makes use of..
>
> #pragma auto_inline off
>
> and I get a compile message about the pragma "auto_inline" is
unrecognized.
> The program compiles and runs just fine as far as I can tell.
>
> (I'm new to pragma so I haven't a clue as to what it's supposed to be
doing.)
>
> My question is, is their an OpenVMS equiv. I can use or can I just comment
it
> out and take my chances.
The #pragma is a preprocessor directive that is compiler specific.
http://www.openvms.digital.com/commercial/c/5492p019.htm#pragmas
You need to check the compiler manual for the specific compiler that the
program was originally compiled on to verify what the #pragma setting does.
I would suspect that it is telling the compiler not to replace functions in
a module with inline code. Basically a deoptimization for speed in some
cases.
As to if you can ignore that, it depends on the reason for that directive.
You can follow the above link for the DEC C #pragma values.
As you probably can guess, a #pragma should not be used in a portable
program unless preprocessor directives also test for the compiler name.
-John
wb8tyw@qsl.network
prev parent reply other threads:[~2000-10-15 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-10-14 4:00 Question : '#pragma auto_inline off' equiv. for OpenVMS Alpha? Robert Alan Byer
2000-10-15 4:00 ` John E. Malmberg [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox