Moxa Technologies UC-7110 Network Card User Manual


 
UC-7110 Series User’s Manual FAQ for UC-7110
C-2
FAQ 5 How do I compress an application program?
Answer 5 UC7110’s kernel supports ZFLAT format files. This means that when you compile
the program, you can add the compress option to reduce the size of the binary file.
Doing so will reduce the required flash space on the user disk. The disadvantage of
using the compress option is that it takes about 5% to 10% more time when loading
the program from Flash to RAM. After uncompressing and loading the program to
RAM, there is no difference. You just need to modify the makefile, LDFLAGS, as
follows:
LDFLAGS = -g,-WI,-T,/usr/local/arm-elf/lib/elf2flt.ld -elf2flt= “-z –r”
NOTE: The user directory’s JFFS2 file system also has a compress function. If you
compile the program with the ZFLAT feature, the file will only be compressed by an
additional 5% to 10% when you copy the program into JFFS2 Flash.
FAQ 6 Since UC-7110’s tool chain currently does not support GDB server, how do I
disable a function by using the Makefile example to generate the gdb file?
Answer 6 Edit the file /usr/local/arm-elf/bin/ld on the PC Linux platform. Add one line after
line 133 (the content of line 133 is: rm –f $OFILE.elf #not needed for any reason)
as follows: rm –f $OFILE.gdb. I.e., after you edit the file lines 133 and 134 will
look like:
Line 133: rm –f $OFILE.elf #not needed for any reason
Line 134: rm –f $OFILE.gdb