From: "Rainer Aigner Tel. XXXX" <aigner@newtec.de>
Subject: Take controll of the assignment operator
Date: 2000/04/11
Date: 2000-04-11T00:00:00+00:00 [thread overview]
Message-ID: <38F2FF84.C44AC279@newtec.de> (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
next reply other threads:[~2000-04-11 0:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-04-11 0:00 Rainer Aigner Tel. XXXX [this message]
2000-04-11 0:00 ` Take controll of the assignment operator Robert A Duff
2000-04-12 0:00 ` Rainer Aigner
2000-04-12 0:00 ` Jean-Pierre Rosen
2000-04-12 0:00 ` Robert Dewar
2000-04-13 0:00 ` Rainer Aigner
2000-04-12 0:00 ` Robert A Duff
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox