comp.lang.ada
 help / color / mirror / Atom feed
* Take controll of the assignment operator
@ 2000-04-11  0:00 Rainer Aigner Tel. XXXX
  2000-04-11  0:00 ` Robert A Duff
  0 siblings, 1 reply; 7+ messages in thread
From: Rainer Aigner Tel. XXXX @ 2000-04-11  0:00 UTC (permalink / raw)


Hello ,
!Please excuse by bad english!

I'm a new one in this news group, and a beginner in programming ADA95.
Right now I have to write some TSAP's in RISC Class 1.
The question I have I just an idea I had, and I just didn't find a
solution for over 2 weeks or so.

Here's the problem:

I define some types:

type unsigned_byte is mod 2**8;
for unsigned_byte'size  use 8;

type unsigned_word is mod 2**16;
for unsigned_word'size use 16;

type unsigned_longword is mod 2**32;
for unsigned_longword'size use 32;

Up to here everythings fine.
Now, my question: How can I make sure that the compiler uses the right
assembler for load and store operations?

My target is a PowerPC and has for each type it's own assembler
statement, and I got to sure (RISC Class 1) that a particular assembler
statment is used.

My first intention was to overload the assignment operator for each type
to get controll over the load/store operations.
But after several hours I kicked this idea, because the assignment
operator is the only one which can not be overloaded.
The workaround right now are sperate load/store procedures.
But that's not what I wanted. Okay You can live with it but..

So if anybody has an idea, I would be very thankfull.

cu
Rainer Aigner

mailto:
aigner@newtec.de





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

end of thread, other threads:[~2000-04-13  0:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-04-11  0:00 Take controll of the assignment operator Rainer Aigner Tel. XXXX
2000-04-11  0:00 ` Robert A Duff
2000-04-12  0:00   ` Rainer Aigner
2000-04-12  0:00     ` Robert A Duff
2000-04-12  0:00     ` Robert Dewar
2000-04-13  0:00       ` Rainer Aigner
2000-04-12  0:00     ` Jean-Pierre Rosen

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