undefined reference to `ZPU_ID'

103 views
Skip to first unread message

ho...@udel.edu

unread,
Oct 17, 2016, 12:57:00 PM10/17/16
to zylin-zpu
Hello All,

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 wonder do I have to use different flags, if for instance I want to use ZPUino instruction set.

Bests

Lange, Bert

unread,
Oct 20, 2016, 11:01:27 AM10/20/16
to zyli...@googlegroups.com
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







Reply all
Reply to author
Forward
0 new messages