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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a1a88c4d509f6381 X-Google-Attributes: gid103376,public From: Rakesh Malhotra Subject: Re: scope and/or parameters (beginner) Date: 1999/04/16 Message-ID: <37169280.44596139@pop.safetran.com>#1/1 X-Deja-AN: 466948690 Distribution: world Content-Transfer-Encoding: 7bit References: <37064309.889106243@news.dsuper.net> <37084459.8616007@rocketmail.com> <370b0c99.1137352783@news.dsuper.net> <7f2435$54d$1@nnrp1.dejanews.com> <37149AE9.883147B6@prolifics.com> <7f52r9$n7q$1@nnrp1.dejanews.com> <37162593.73F3F640@prolifics.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Abuse-Info: Otherwise we will be unable to process your complaint properly X-Complaints-To: abuse@gte.net X-Trace: /whjskiOKPwIRxoJqhE68eOJhOQ4Z04cpFeHnOtPyNsnVkoyMq35dObQPa1tJa9p/78YOyUPkTJK!C/QtmFwXU7mlEqkmQlFiJHOkyeUIP1PdGk4wcouqjRGz4Qg1WxkfoM9G1YNVgfdekw7E8giB MIME-Version: 1.0 NNTP-Posting-Date: Fri, 16 Apr 1999 01:29:26 GMT Newsgroups: comp.lang.ada Date: 1999-04-16T00:00:00+00:00 List-Id: Hyman Rosen wrote: > C compilers routinely place const global data into readonly segments. > I assure you, they are quite constant! Maybe most compilers do place const declarations into ROM however that is not universally true. If I remember correctly Embedded Systems Programming (very recently) carried at least 4 consecutive issues on this very topic : the different ways the keyword "const" can be used and what it means under different circumstances. In the articles (I think) the author mentioned that "const" will often not do what it implies i.e. the compiler/linker will not locate the so-called constant in ROM but in RAM.