Hello hoda,
> I'm new to ZPU, and I'm trying to compile a program with Zylin gcc.
> However, I got the error "undefined reference to `ZPU_ID'".
> Some one in the web mentioned that I should use -phi flag in my compilation command. But it also mentioned that it is for JavaZpu Simulator.
I use the '-phi' flag also in daily life.
Maby it works because I use a modified crt0.S.
I commented out some lines around (after) ZPU_ID:
.globl _start
_start:
; intSp must be 0 when we jump to _premain; aha BLa
;im ZPU_ID
;loadsp 0
;im _cpu_config
;store
;config
jmp _premain
> I wonder do I have to use different flags, if for instance I want to use ZPUino instruction set.
I don't know which flags are necessary for ZPUino.
regards,
Bert