Re: [fpc-pascal] What is the best memory optimization parameter

2016-06-15 Thread czd
Actually, I want to reduce the size of the fpc for linux/mips, I have tested the size of the ppcmips without the OPT, OPT='-CX -Xs -XX' and OPT='-O4 -Oonostackframe -XX' options but nothings changed dramatically. All the OPT sizes are the same. Is there something to forget? Thanks. -- View this

Re: [fpc-pascal] mips linux cross compiled application error

2016-06-15 Thread czd
Thats the fpc log when compiling under Linux/mips (OpenWRT) system. Has someone any idea? root@Omega-28F6:~/onion-omega/fpc-test# fpc -Tlinux -Pmips hello.pas -va [0.008] Macro defined: LINUX [0.009] Macro defined: UNIX [0.010] Macro defined: HASUNIX [0.012] Macro defined: FPC_REQUIRES_PROPER_ALI

[fpc-pascal] What is the best memory optimization parameter

2016-06-15 Thread czd
Hi all, What is the extreme memory optimization parameter to compile fpc for the embedded system? And could someone tell me what is the minimum memory specification for freepascal to run? Thanks. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/What-is-the-best

Re: [fpc-pascal] mips linux cross compiled application error

2016-06-15 Thread czd
Hi all, Soon the cross compilation works fine then I tried to compile without cross. :) I compiled fpc for the linux/mips platform. But when I try to compile the test application error occurs like that. root@Omega-28F6:~/onion-omega/fpc-test# ppcmips hello.pas Free Pascal Compiler version 3.1.1 [

Re: [fpc-pascal] mips linux cross compiled application error

2015-11-28 Thread czd
Congratulations for the new fpc compiler and the developers, soon I achieved to compile a simple test program for mips/linux platform. As I wrote before my simple device is onion/omega and here is the cpuinfo and compiled application(attached). It complains with the Illegal instruction replied.. Th

Re: [fpc-pascal] mips linux cross compiled application error

2015-11-10 Thread czd
The board that I mention looks like Big endian mips system so I checked and recompile the binutils again with these parameters. ./configure --target=mips-linux --prefix=/usr/local --bindir=/usr/bin --program-prefix=mips-linux- And here is the fpc compile steps. make distclean OS_TARGET=linux CP

[fpc-pascal] mips linux cross compiled application error

2015-11-09 Thread czd
Hi all, I have compiled a simple mips/linux application with using raspberry pi, when I execute the app. it replies with this error. Device is onion omega. Illegal instruction. Here is my application output and the source. file testmips testmips: ELF 32-bit MSB executable, MIPS, MIPS32 version 1