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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f682e320f3b1bea8,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-08-08 03:00:20 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: rich_ard_james@yahoo.co.uk (Rich) Newsgroups: comp.lang.ada Subject: Importing ld memory defintions into ada code Date: 8 Aug 2003 03:00:19 -0700 Organization: http://groups.google.com/ Message-ID: <8cd0c91f.0308080200.3755802a@posting.google.com> NNTP-Posting-Host: 193.195.213.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1060336820 23505 127.0.0.1 (8 Aug 2003 10:00:20 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 8 Aug 2003 10:00:20 GMT Xref: archiver1.google.com comp.lang.ada:41245 Date: 2003-08-08T10:00:20+00:00 List-Id: Is it possible to use the linker directive definitions for memory sections in ada? I want to create a constant in ada that is initialised to the ld memory definition. i.e. ld file; MEMORY { Buffer : ORIGIN = 0x00000000, LENGTH = 256 dram_memory : ORIGIN = ., LENGTH = 1M - 256 } Ada file; MY_BUFFER : constant ADDRESS_TYPE := Import ld definition of buffer. I would prefer to do this the other way around but i seriously doubt that is possible. If none of this is possible then i will just have to make duplicate definitions of the same value. Regards, Rich