From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,688957833fe9655b X-Google-Attributes: gid103376,public From: Marin Condic Subject: Re: Pragma Comment -- What does it do? Date: 1999/11/10 Message-ID: <3829E70A.FEC8915B@pwfl.com>#1/1 X-Deja-AN: 547068982 Content-Transfer-Encoding: 7bit Sender: condicma@bogon.pwfl.com References: <19991110154624.8876.rocketmail@web210.mail.yahoo.com> <80ck2v$deq$1@nnrp1.deja.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Pratt & Whitney Mime-Version: 1.0 Reply-To: condicma@pwflcom Newsgroups: comp.lang.ada Date: 1999-11-10T00:00:00+00:00 List-Id: Ted Dennison wrote: > In article <19991110154624.8876.rocketmail@web210.mail.yahoo.com>, > comp.lang.ada@ada.eu.org wrote: > > Does anyone know what do the following pragmas do? > > > > 1. Pragma Comment > > I see it inside some code, and it compiles fine, > > but it appears nowhere else thereafter. > > So I wonder, if its just a line inside the source, > > why dont I just have a comment line -- to begin with? > > The language defines no such pragma. Consult your compiler documentation > to see what they do with it. Since unrecognized pragmas are ignored, its > quite possible that this is just someone's gooberish way of commenting > their code. If so, please do change it to a *real* comment. Here's a guess: Some compilers provide the ability to get character data embedded into the ROMable part of the code. For practical purposes, this is a "comment". The idea is that you may want to embed module information, version numberings, copyright notices ("When you care enough to steal the very best!") or other information that may ride along with the ROM image. It sounds like a "pragma Comment" might be doing this job. You are quite correct, of course, observing that it is not a standard pragma, so if MaryAnn Atkinson posts the compiler brand and version, maybe we can be of more help. MDC -- Marin David Condic If you hurry you can, for a short time only, still find me at: Real Time & Embedded Systems, Propulsion Systems Analysis United Technologies, Pratt & Whitney, Large Military Engines M/S 731-95, P.O.B. 109600, West Palm Beach, FL, 33410-9600 ***To reply, remove "bogon" from the domain name.*** Visit my web page at: http://www.mcondic.com/