"Butter bei de Fische" was: Re: [PATCH v3] score: PR1607: Add and use CPU_SIZEOF_POINTER

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Nov 13 14:04:45 UTC 2012


On 11/13/2012 02:25 PM, Ralf Corsepius wrote:
>> From
>> 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.

Yes, but this is insufficient.  Depending on the pointer size you may have to 
use different load/store instructions.

>
>> 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
>> macros.
>
> 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 FUBARed).

http://www.rtems.org/pipermail/rtems-devel/2012-November/002003.html

-- 
Sebastian Huber, embedded brains GmbH

Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
Phone   : +49 89 18 90 80 79-6
Fax     : +49 89 18 90 80 79-9
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.





More information about the devel mailing list