<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
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.<br>
<br>
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.<br>
<br>
The problem I've run into now is that for some reason, if I compile the
Tremor code and link my code against it, <b>even if I never call it</b>,
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.<br>
<br>
<br>
<br>
Nicholas<br>
<br>
<br>
Nicholas Vinen wrote:
<blockquote cite="mid:4939A735.7030605@x256.org" type="cite">
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
Nicholas Vinen wrote:
<blockquote cite="mid:4939A674.3060707@x256.org" type="cite">
<meta content="text/html;charset=ISO-8859-1"
http-equiv="Content-Type">
Nicolas Pitre wrote:
<blockquote
cite="mid:alpine.LFD.2.00.0812051657460.14328@xanadu.home" type="cite">
<pre wrap="">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
</pre>
</blockquote>
<br>
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.<br>
<br>
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.<br>
<br>
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.<br>
<br>
<br>
Nicholas<br>
</blockquote>
Oops, sorry. I read your reply as saying "you should really have a
toolchain with thumb support enabled".<br>
<br>
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.<br>
<br>
<br>
Nicholas<br>
<br>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Tremor mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Tremor@xiph.org">Tremor@xiph.org</a>
<a class="moz-txt-link-freetext" href="http://lists.xiph.org/mailman/listinfo/tremor">http://lists.xiph.org/mailman/listinfo/tremor</a>
</pre>
</blockquote>
<br>
</body>
</html>