<p>Am 06.09.2014 11:27 schrieb "Reinier Olislagers" <<a href="mailto:reinierolislagers@gmail.com">reinierolislagers@gmail.com</a>>:<br>
> program hellomips;<br>
><br>
> {$mode objfpc}<br>
> // let's use short strings {.$H+}<br>
><br>
> {not$DEFINE UseCThreads} //otherwise it seems we get pthreads which gdb<br>
> can't debug<br>
> uses<br>
> {$IFDEF UNIX}{$IFDEF UseCThreads}<br>
> cthreads,<br>
> {$ENDIF}{$ENDIF}<br>
> Classes<br>
> ;<br>
><br>
> begin<br>
> writeln('hello mips');<br>
> end.</p>
<p>Would you please as a test remove the Classes unit as well? It does some rather heavyweight initialization (which I noticed during getting m68k back to life).</p>
<p>><br>
> with options<br>
> -MObjFPC -Scghi -Tlinux -Pmips -CpMIPS32R2 -Xs -vewnhibq<br>
> -Filib\mips-linux -Fu. -FUlib\mips-linux -l</p>
<p>Are you sure "mips" is the big endian version? (I don't remember whether it's mips and mipsle or mipsbe and nips...)</p>
<p>Additionally a simple Helloworld binary like that should not have any library dependencies (FPC's RTL normally uses syscalls directly on Linux after all). Would you please check with the mips objdump whether this is really the case?</p>
<p>Regards,<br>
Sven</p>