The LayGO PDK development environment is based on traditional makefiles
using GNU make
. For instance, to build the PDK version of the
cannonical "hello, world" program, you would open a shell on your Linux development
machine and do:
# cd /opt/laygopdk-3.10/etc/pdkhello # ls makefile pdkhello.c # make arm-elf-gcc -mcpu=arm7tdmi -mbig-endian -c -o pdkhello.o -Wall -O2 -fverbose-asm -Dx_ECOS -DNDEBUG -I/opt/laygopdk-3.10/inc -I/opt/laygopdk-3.10/inc/ecos -ffunction-sections -fdata-sections -Wp,-MD,pdkhello.d pdkhello.c arm-elf-gcc -mcpu=arm7tdmi -mbig-endian -o pdkhello.elf -Wall -O2 -fverbose-asm -Dx_ECOS -DNDEBUG -I/opt/laygopdk-3.10/inc -I/opt/laygopdk-3.10/inc/ecos pdkhello.o /opt/laygopdk-3.10/obj/ecosmain.o -nostartfiles -Wl,--gc-sections -Ttarget.ld -nostdlib -L/opt/laygopdk-3.10/lib -L/opt/laygopdk-3.10/lib/ecos arm-elf-objcopy -O binary pdkhello.elf pdkhello.bin # ls makefile pdkhello.bin* pdkhello.c pdkhello.d pdkhello.elf* pdkhello.o
The file pdkhello.bin is the program image to load and execute on the PXS.