在以下两个mips平台都设置环境变量:
export GOARCH=mipsle
export GOOS=linux
**第一个平台下运行时报错**:./hello-mips32le: line 1: syntax error: unexpected "("
**第二个平台下能正常运行**。
大侠们有相关经验吗?
**第一个平台root@nodeshanghai**:~# cat /proc/cpuinfo
system type : Qualcomm Atheros QCA9533 ver 2 rev 0
machine : Qualcomm Atheros CUS531 MP3 nand reference board
processor : 0
cpu model : MIPS 24Kc V7.4
BogoMIPS : 432.53
wait instruction : yes
microsecond timers : yes
tlb_entries : 16
extra interrupt vector : yes
hardware watchpoint : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa : mips1 mips2 mips32r1 mips32r2
ASEs implemented : mips16
shadow register sets : 1
kscratch registers : 0
package : 0
core : 0
VCED exceptions : not available
VCEI exceptions : not available
===========================================================================
**第二个平台root@nodebeijing**:~# cat /proc/cpuinfo
system type : MediaTek MT7628AN ver:1 eco:2
machine : WRTnode2P
processor : 0
cpu model : MIPS 24KEc V5.5
BogoMIPS : 380.92
wait instruction : yes
microsecond timers : yes
tlb_entries : 32
extra interrupt vector : yes
hardware watchpoint : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa : mips1 mips2 mips32r1 mips32r2
ASEs implemented : mips16 dsp
shadow register sets : 1
kscratch registers : 0
package : 0
core : 0
VCED exceptions : not available
VCEI exceptions : not available
有疑问加站长微信联系(非本文作者)