Cross gcc Mailing List Archive
[Prev][Next][Index][Thread]
Re: Using Register type on PowerPC
Mike McQuade wrote:
>
> Does using the "register" type have any effect on PowerPC code generated
> with GCC ?
>
> I would guess that it does not.
>
> MikeMcQuade@connect.com
Mike,
I've found that it is taken as a suggestion as to which, if any
variables should be considered first in priority for assignment
to registers, if the back end is running out of registers for
all the locals. The remaining vars (register or not) are then
allocated from the stack.
Also, for whatever reason, in the versions of GCC we've been using
for i960Cx target, tagging function parameters with 'register'
shuts up the compiler warning about unused arguments in C. I don't
believe this is documented (or supported for that matter) anyplace,
but someone in our organization 'discovered' this little gem.
--
Cheers,
DaveN
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Dave New, den@aisinc.com | Machine vision?
Applied Intelligent Systems | I'm glad *they* can see the future...
3980 Ranchero Drive |
Ann Arbor, MI 48108 | Opinions expressed are mine. | PGP 2.6
(313) 332-7010 | 08 12 9F AF 5B 3E B2 9B 6F DC 66 5A 41 0B AB 29
(313) 332-7077 FAX
References:
Home |
Subject Index |
Thread Index