This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Hi Massimiliano,
We have attached a sample program indicating usage of saveall pragma.
Please have a look at the generated assembly files.
Regards,
GNUSupport
-----Original Message-----
From: Massimiliano Cialdi [mailto:cialdi at firenze dot net]
Sent: Friday, February 28, 2003 5:17 PM
To: gnuh8 at gnuh8 dot org dot uk
Cc: gcc-help at gcc dot gnu dot org
Subject: using pragma saveall
How can I use #pragma saveall?
suppose I have a function dummy and I want oll register saved.
#pragma saveall(dummy)
int dummy(/* parameters */)
{
/* body */
}
I tried in this way and also without pragma line and the results are the
same. I compared the assembly source code produced with and without
#pragma saveall and there is no difference. So how can I use the
saveall?
thanks
--
Massimiliano Cialdi
cialdi at firenze dot net
m dot cialdi at oksys dot it
cialdi at control dot dsi dot unifi dot it
--
GNUH8 Mailing List | If you encounter difficulties using this service
| email: listmaster at gnuh8 dot org dot uk
| http://www.gnuh8.org.uk/
Attachment:
saveall.zip
Description: saveall.zip
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |