Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!seismo!rochester!pt.cs.cmu.edu!andrew.cmu.edu!jm36# From: jm36#@andrew.cmu.edu.UUCP Newsgroups: comp.lang.c Subject: Re: Use of #pragma Message-ID: Date: Thu, 23-Apr-87 22:18:38 EST Article-I.D.: andrew.IUXhaCy00V4FwZ00ZD Posted: Thu Apr 23 22:18:38 1987 Date-Received: Sat, 25-Apr-87 08:50:58 EST Organization: Carnegie-Mellon University Lines: 29 ReSent-Date: Thu, 23 Apr 87 23:19:14 edt ReSent-From: postman#@andrew.cmu.edu ReSent-To: nntp-xmit#@andrew.cmu.edu Return-path: X-Andrew-Authenticated-as: 2971 X-Trace: MS Version 3.22 on ibm032 host danville, by jm36 (2971). To: outnews#ext.nn.comp.lang.c@andrew.cmu.edu In-Reply-To: <6966@brl-adm.ARPA> Beak: Is > From: LINNDR%VUENGVAX.BITNET@wiscvm.wisc.EDU > Subject: Use of #pragma > Date: 17 Apr 87 22:51:27 GMT > > I could have > ! > ! #pragma NO_OPTIMIZE > ! > ! #pragma OPTIMIZE > ! I certainly hope you don't try to feed a file like that through the GNU C compiler anytime between 9AM and 5PM on weekdays. From the documentation on the GNU preprocessor: > The `#pragma' command is specified in the ANSI standard to have an > arbitrary implementation-defined effect. In the GNU C preprocessor, > `#pragma' first attempts to run the game `rogue'; if that fails, > it tries to run the game `hack'; if that fails, it tries to run > GNU Emacs displaying the Tower of Hanoi; if that fails, it reports a > fatal error. In any case, preprocessing does not continue. *ANY* C program which contains a "#pragma" is not portable. One compiler could interpret "#pragma OPTIMIZE" as meaning "Turn on the optimizer" and another interpret it as meaning "Deposit the OP(code) called 'TIMIZE' in the object code." _.John