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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f682e320f3b1bea8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-08-09 09:09:05 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.airnews.net!cabal12.airnews.net!usenet From: "John R. Strohm" Newsgroups: comp.lang.ada Subject: Re: Importing ld memory defintions into ada code Date: Sat, 9 Aug 2003 11:02:59 -0500 Organization: Airnews.net! at Internet America Message-ID: References: <8cd0c91f.0308080200.3755802a@posting.google.com> Abuse-Reports-To: abuse at airmail.net to report improper postings NNTP-Proxy-Relay: library1-aux.airnews.net NNTP-Posting-Time: Sat, 09 Aug 2003 11:06:49 -0500 (CDT) NNTP-Posting-Host: !XT>^1k-X"a`CT4 (Encoded at Airnews!) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Xref: archiver1.google.com comp.lang.ada:41285 Date: 2003-08-09T11:02:59-05:00 List-Id: "Rich" wrote in message news:8cd0c91f.0308080200.3755802a@posting.google.com... > 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. As I read this, you are saying that you want to control the buffer location FROM THE LINKER CONTROL FILE. (Caps for emphasis.) Presumably, this is because you have to tie multiple processors together, using shared memory, and some of the processors are programmed in something other than Ada. (If they were all in Ada, you'd use Ada rep specs in a shared package.) Can you do an assembly language routine, that just returns the value of an external symbol, which will be bound by the linker, and use "pragma interface(assembly)" to tie it together?