comp.lang.ada
 help / color / mirror / Atom feed
* Importing ld memory defintions into ada code
@ 2003-08-08 10:00 Rich
  2003-08-08 14:17 ` 
  2003-08-09 16:02 ` John R. Strohm
  0 siblings, 2 replies; 3+ messages in thread
From: Rich @ 2003-08-08 10:00 UTC (permalink / raw)


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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-08-09 16:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-08 10:00 Importing ld memory defintions into ada code Rich
2003-08-08 14:17 ` 
2003-08-09 16:02 ` John R. Strohm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox