"Butter bei de Fische" was: Re: [PATCH v3] score: PR1607: Add and use CPU_SIZEOF_POINTER
ralf.corsepius at rtems.org
Tue Nov 13 13:25:41 UTC 2012
On 11/09/2012 08:44 AM, Thomas Doerfler wrote:
> Ralf, Sebastian,
> we had that discussion for a long time now, with different flavors.
Correct. Eliminating such POINTER_SIZE stuff was one of my first
achievements when getting involved into RTEMS.
What Sebastian is trying to do now, to me means turning back time by ca.
>10 years ago.
> my knowledge of the PPC assembly code snippets, I can't see how we can
> come along without preprocessor symbols specifying the pointer length
> (Well, we might hard code it to 4 bytes, but that is not what we want...)
You can pass _constants_ as parameters to c-inline asm.
> Ralf, you seem to have a concept in mind how that code could be written
> in a way, that is based on inline asm support instead of preprocessor
Yes, but it's a long time ago, since I did this and do not recall all
glory details (I did a mass conversion as part of the
campaign/initiative mentioned above).
> Maybe the whole discussion would become more transparent, if a
> certain piece of code is transformed the way you seem to vision.
OK, please provide me with a piece of code to look into. (No, do not
point me to Joel's smp macros - They are implemented in a way, they a
More information about the devel