[Tremor] Tremor ARM performance issues
Nicholas Vinen
hb at x256.org
Fri Dec 5 15:05:50 PST 2008
Replying to myself here: thanks to Nicolas' prompting I was able to work
out how to create a set of libraries which have thumb interworking.
The trick was to edit gcc/config/arm/t-arm-elf before compiling
arm-elf-gcc, and uncomment the lines referring to thumb-interwork. Now I
have libraries which are compatible with that.
The problem I've run into now is that for some reason, if I compile the
Tremor code and link my code against it, *even if I never call it*, my
test code for my embedded system fails to run. Perhaps it is some kind
of memory management problem, but there is certainly enough memory to
fit it all. I will have to fiddle with it a bit and see if I can work
out why it's failing.
Nicholas
Nicholas Vinen wrote:
> Nicholas Vinen wrote:
>> Nicolas Pitre wrote:
>>> Gah. That's the division support code. Well you should really have a
>>> toolchain with thumb interworking enabled anyway. Otherwise the code
>>> won't execute at all.
>>>
>>>
>>> Nicolas
>>>
>>
>> Well, as far as I know I do. The problem is that my thumb libraries
>> don't have "interworking support". That is, they can't be called from
>> non-thumb code.
>>
>> This should be fine as long as I am careful to only compile functions
>> in ARM mode that don't call any library functions. As this only needs
>> to be functions using the assembly code, it should be possible.
>>
>> I'd like to recompile my libraries with interworking support too, but
>> I haven't yet found the option to do so. I've enabled multilib
>> support in my arm-gcc and will recompile newlib but I'm not sure if
>> that will do the trick. Hopefully I can make do without it but it
>> would be nice to have anyway.
>>
>>
>> Nicholas
> Oops, sorry. I read your reply as saying "you should really have a
> toolchain with thumb support enabled".
>
> Yeah, I would like to have thumb interworking support enabled in the
> libraries. If you know how, please tell. But as I said (poorly), I
> think it will work OK as long as my library has thumb support and I'm
> careful not to call any library functions from non-thumb functions.
>
>
> Nicholas
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Tremor mailing list
> Tremor at xiph.org
> http://lists.xiph.org/mailman/listinfo/tremor
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/tremor/attachments/20081206/4f1f2dd9/attachment.htm
More information about the Tremor
mailing list