<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 21 Dec 2011, at 10:43, <a href="mailto:fpc-devel-request@lists.freepascal.org">fpc-devel-request@lists.freepascal.org</a> wrote:</div><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(127, 127, 127, 1.0);"><b>From: </b></span><span style="font-family:'Helvetica'; font-size:medium;">Jeppe Gręsdal Johansen <<a href="mailto:jjohan07@student.aau.dk">jjohan07@student.aau.dk</a>><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(127, 127, 127, 1.0);"><b>Subject: </b></span><span style="font-family:'Helvetica'; font-size:medium;"><b>Re: [fpc-devel] arm embedded on 2.6.0rc1</b><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(127, 127, 127, 1.0);"><b>Date: </b></span><span style="font-family:'Helvetica'; font-size:medium;">20 December 2011 21:20:07 GMT<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(127, 127, 127, 1.0);"><b>To: </b></span><span style="font-family:'Helvetica'; font-size:medium;">FPC developers' list <<a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(127, 127, 127, 1.0);"><b>Reply-To: </b></span><span style="font-family:'Helvetica'; font-size:medium;">FPC developers' list <<a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>><br></span></div><br><br>Den 20-12-2011 21:51, Geoffrey Barton skrev:<br><blockquote type="cite">I have been trying to cross-compile arm embedded for a cortexm3 using 2.6.0rc1. I had this working previously with 2.4.0 and stellaris controllers.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Following the instructions on the wiki page 'TARGET_Embedded' and adding suitable devices into cpuinfo etc. where they have been missed out, I can build a test program. However disassembling the resulting elf file shows the sections system_fpc_cpuuint, system_sysinitfpu, fpc_initializeunits, fpc_initializeunitsetc, system_internalexit, fpc_do_exit, system_system_exit and init$_system to be 32 bit arm code not thumb2. The rest of the program, including the stellaris.pp code, are correct thumb2 code.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">It appears the armv7m subarch is not being acted on when compiling rtl? I got the same result if I substituted cortexm3 for this too.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Geoffrey<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">fpc-devel maillist - <a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a><br></blockquote><blockquote type="cite"><a href="http://lists.freepascal.org/mailman/listinfo/fpc-devel">http://lists.freepascal.org/mailman/listinfo/fpc-devel</a><br></blockquote>Do you have an example of how you can see it is 32 bit arm code and not thumb2?<br></blockquote></div><br><div>previously:-</div><div><br></div><div><div>00005cf4 <SYSTEM_FPC_CPUINIT>:</div><div> 5cf4:<span class="Apple-tab-span" style="white-space: pre; "> </span>46ec <span class="Apple-tab-span" style="white-space: pre; "> </span>mov<span class="Apple-tab-span" style="white-space: pre; "> </span>ip, sp</div><div> 5cf6:<span class="Apple-tab-span" style="white-space: pre; "> </span>e92d 4800 <span class="Apple-tab-span" style="white-space: pre; "> </span>stmdb<span class="Apple-tab-span" style="white-space: pre; "> </span>sp!, {fp, lr}</div><div> 5cfa:<span class="Apple-tab-span" style="white-space: pre; "> </span>46e3 <span class="Apple-tab-span" style="white-space: pre; "> </span>mov<span class="Apple-tab-span" style="white-space: pre; "> </span>fp, ip</div><div> 5cfc:<span class="Apple-tab-span" style="white-space: pre; "> </span>b08a <span class="Apple-tab-span" style="white-space: pre; "> </span>sub<span class="Apple-tab-span" style="white-space: pre; "> </span>sp, #40</div><div> 5cfe:<span class="Apple-tab-span" style="white-space: pre; "> </span>f000 f803 <span class="Apple-tab-span" style="white-space: pre; "> </span>bl<span class="Apple-tab-span" style="white-space: pre; "> </span>5d08 <SYSTEM_SYSINITFPU></div><div> 5d02:<span class="Apple-tab-span" style="white-space: pre; "> </span>46dd <span class="Apple-tab-span" style="white-space: pre; "> </span>mov<span class="Apple-tab-span" style="white-space: pre; "> </span>sp, fp</div><div> 5d04:<span class="Apple-tab-span" style="white-space: pre; "> </span>e91d 8800 <span class="Apple-tab-span" style="white-space: pre; "> </span>ldmdb<span class="Apple-tab-span" style="white-space: pre; "> </span>sp, {fp, pc}</div><div><br></div><div>now:-</div><div><br></div><div><div>00005d88 <SYSTEM_FPC_CPUINIT>:</div><div> 5d88:<span class="Apple-tab-span" style="white-space: pre; "> </span>e92d4000 <span class="Apple-tab-span" style="white-space: pre; "> </span>push<span class="Apple-tab-span" style="white-space: pre; "> </span>{lr}</div><div> 5d8c:<span class="Apple-tab-span" style="white-space: pre; "> </span>e24dd004 <span class="Apple-tab-span" style="white-space: pre; "> </span>sub<span class="Apple-tab-span" style="white-space: pre; "> </span>sp, sp, #4</div><div> 5d90:<span class="Apple-tab-span" style="white-space: pre; "> </span>e59f0010 <span class="Apple-tab-span" style="white-space: pre; "> </span>ldr<span class="Apple-tab-span" style="white-space: pre; "> </span>r0, [pc, #16]<span class="Apple-tab-span" style="white-space: pre; "> </span>; 5da8 <SYSTEM_FPC_CPUINIT+0x20></div><div> 5d94:<span class="Apple-tab-span" style="white-space: pre; "> </span>e5d00000 <span class="Apple-tab-span" style="white-space: pre; "> </span>ldrb<span class="Apple-tab-span" style="white-space: pre; "> </span>r0, [r0]</div><div> 5d98:<span class="Apple-tab-span" style="white-space: pre; "> </span>e3500000 <span class="Apple-tab-span" style="white-space: pre; "> </span>cmp<span class="Apple-tab-span" style="white-space: pre; "> </span>r0, #0</div><div> 5d9c:<span class="Apple-tab-span" style="white-space: pre; "> </span>0b000002 <span class="Apple-tab-span" style="white-space: pre; "> </span>bleq<span class="Apple-tab-span" style="white-space: pre; "> </span>5dac <SYSTEM_SYSINITFPU></div><div> 5da0:<span class="Apple-tab-span" style="white-space: pre; "> </span>e28dd004 <span class="Apple-tab-span" style="white-space: pre; "> </span>add<span class="Apple-tab-span" style="white-space: pre; "> </span>sp, sp, #4</div><div> 5da4:<span class="Apple-tab-span" style="white-space: pre; "> </span>e8bd8000 <span class="Apple-tab-span" style="white-space: pre; "> </span>pop<span class="Apple-tab-span" style="white-space: pre; "> </span>{pc}</div><div> 5da8:<span class="Apple-tab-span" style="white-space: pre; "> </span>20000018 <span class="Apple-tab-span" style="white-space: pre; "> </span>andcs<span class="Apple-tab-span" style="white-space: pre; "> </span>r0, r0, r8, lsl r0</div></div></div></body></html>