Re: Generating Java Bytecode

jsa@alexandria.organon.com (Jon S Anthony)
1 Dec 1996 22:53:13 -0500

          From comp.compilers

Related articles
[17 earlier articles]
Re: Generating Java Bytecode lynch@frigg.cci.de (Andrew Lynch) (1996-11-24)
Re: Generating Java Bytecode am56@dial.pipex.com (Stefan Heinzmann) (1996-11-24)
Re: Generating Java Bytecode guerby@gnat.com (1996-11-26)
Re: Generating Java Bytecode gvreugde@uwaterloo.ca (1996-11-26)
Re: Generating Java Bytecode jaidi@ubd.edu.bn (Nor Jaidi) (1996-11-26)
Re: Generating Java Bytecode Freek.Wiedijk@phil.ruu.nl (1996-12-01)
Re: Generating Java Bytecode jsa@alexandria.organon.com (1996-12-01)
Re: Generating Java Bytecode jgreene@inmet.com (Jeremy Greene) (1996-12-01)
Re: Generating Java Bytecode Antoine.Leca@renault.fr (Antoine Leca) (1996-12-01)
Re: Generating Java Bytecode kaleja@rahul.net (Russell Bornsch++) (1996-12-03)
Re: Generating Java Bytecode derek@knosof.co.uk (1996-12-07)
| List of all articles for this month |
From: jsa@alexandria.organon.com (Jon S Anthony)
Newsgroups: comp.compilers
Date: 1 Dec 1996 22:53:13 -0500
Organization: Organon Motives, Inc.
References: 96-11-108 96-11-154
Keywords: Java, Ada

gvreugde@uwaterloo.ca (Gord Vreugdenhil) writes:


> Joe Hummel <jhummel@crispix.ICS.UCI.EDU> writes:
>
> > I would imagine that Ada does support something like:
> >
> > p = (void *) 0x0080001F;
...
> Not quite the same thing, but you can say things like:
>
> for p use at 16#0080001F#;
>
> the above. Ada does require that the "at" expressions do not
> overlap with either a name or another "at"; ie. the "at" cannot
> create an alias. (ARM '83, 13.5)


This has changed for Ada95. The expression is now given by an
attribute clause:


      for P'Address use <exp>;


where exp is any address expression. For the absolute memory
specification given above you would use
System.Storage_Elements.To_Address on the constant. For example,


      The_Address : Integer_Address := 16#0080001F#;
      for P'Address use To_Address(The_Address);


Also, the "aliasing" restrictions have been "downgraded" to a "bounded
error" or otherwise removed.


/Jon
--
Jon Anthony
Organon Motives, Inc.
Belmont, MA 02178
617.484.3383
jsa@organon.com
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.