From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,d2f2eb266a04cfed X-Google-Attributes: gid1164f8,public From: "John E. Malmberg" Subject: Re: Question : '#pragma auto_inline off' equiv. for OpenVMS Alpha? Date: 2000/10/15 Message-ID: #1/1 X-Deja-AN: 681909291 References: X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Complaints-To: newsabuse@supernews.com Organization: Posted via Supernews, http://www.supernews.com X-MSMail-Priority: Normal Newsgroups: comp.sys.dec "Robert Alan Byer" 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