<html><head>
</head>
<body style="padding-bottom:40px">
<div style="font-size: 10pt; "><p dir="ltr" style="margin-top:0;margin-bottom:0;">Small correction: -Cparmv7a</p></div>
<div style="font-size: 10pt; "><div id="LGEmailHeader" dir="ltr" style="margin-top:0;margin-bottom:0;"><p dir="ltr" style="margin-top:0;margin-bottom:0;"><br></p><p dir="ltr" style="margin-top:0;margin-bottom:0;">------ Oprindelig besked------</p><p dir="ltr" style="margin-top:0;margin-bottom:0;"><b>Fra: </b>Jonas Maebe<jonas.maebe@elis.ugent.be></jonas.maebe@elis.ugent.be></p><p dir="ltr" style="margin-top:0;margin-bottom:0;"><b>Dato: </b>ons., 11. feb. 2015 13:36</p><p dir="ltr" style="margin-top:0;margin-bottom:0;"><b>Til: </b>FPC-Pascal users discussions;</p><p dir="ltr" style="margin-top:0;margin-bottom:0;"><b>Emne:</b>Re: [fpc-pascal] access violations on new ARM hardware</p><p dir="ltr" style="margin-top:0;margin-bottom:0;"><br></p></div><pre>On 11 Feb 2015, at 12:48, Björn Schreiber wrote:> Some new information: the manufacturer of the SOM did a analysis of > the compiled program. We were told that the program makes use of the > SWP instruction which is deprecated since ARMv6 and was deactivated > in the kernel we used. They build a new kernel with the deprecated > instruction activated which is running the test program without any > error.> Now we can use this new kernel for further tests.>> Is there any compiler switch to control the generated code and > therefore the chance to avoid this deprecated instruction?The swp instruction is in the RTL. It will not be included if you compile the RTL for an architecture that does not support this instruction. The Cortex-A5 is an ARMv7 class cpu, so adding -Cparmv7 to your cross-options when building the RTL should <a href="http://work.Jo">work.Jo</a>nas_______________________________________________fpc-pascal maillist - <a href="mailto: fpc-pascal@lists.freepascal.orghtt"> fpc-pascal@lists.freepascal.orghtt</a>p://<a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal">lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a></pre></div></body></html>