Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Question : '#pragma auto_inline off' equiv. for OpenVMS Alpha?
@ 2000-10-14  4:00 Robert Alan Byer
  2000-10-15  4:00 ` John E. Malmberg
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Alan Byer @ 2000-10-14  4:00 UTC (permalink / raw)



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.

Thanks.

-- 

 +------------------+--------------------------+---------------+
 | Robert Alan Byer | byer@mail.ourservers.net | ICQ #65926579 |
 +------------------+--------------------------+---------------+
 | Send an E-mail request to obtain a copy of my PGP key.      |
 +-------------------------------------------------------------+
 | "It is by caffeine alone I set my mind in motion.  It is by |
 |  cans of cola the thoughts aquire speed, the hands aquire   |
 |  shakes, the shakes become a warning.  It is by caffeine    |
 |  alone I set my mind in motion."                            |
 +-------------------------------------------------------------+




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Question : '#pragma auto_inline off' equiv. for OpenVMS Alpha?
  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
  0 siblings, 0 replies; 2+ messages in thread
From: John E. Malmberg @ 2000-10-15  4:00 UTC (permalink / raw)


"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







^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-10-15  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox