[En-Nut-Discussion] NutHeapRealloc
Moritz Struebe
morty at gmx.net
Wed May 28 16:33:20 CEST 2008
Nathan Moore schrieb:
>>> Ok, but if you have a static inline NutThreadInitThreadStructure you
>>> have no overhead and a clean design (reasons see above.).
>>>
>> Are you shure? Defining inline functions does not work (inline) over the
>> border of a single c file, right? I don't know how it should work as the
>> compiler generates a single .o file for every c file. In this case the
>> compiler will call the function as a normal function, right?
>>
>
>
> Put them in an arch/ header that's indirectly included in thread.c based on
> the target.
>
That was my first idea, too. But then you end up with arch-dependant
object files outside the arch-directory. Ole suggested to put an .inc in
the "global" directory and include this .inc into the device dependent file.
Morty
More information about the En-Nut-Discussion
mailing list