日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

mips linux 编译器,linux - MIPS的交叉编译器似乎无法创建有效的程序 - 堆栈内存溢出...

發布時間:2024/1/1 linux 32 豆豆
生活随笔 收集整理的這篇文章主要介紹了 mips linux 编译器,linux - MIPS的交叉编译器似乎无法创建有效的程序 - 堆栈内存溢出... 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

我已經使用buildroot設置了一個交叉編譯器。

目標設備正在運行Linux,并且具有MIPS處理器(這是Dreambox dm500hd)。

Buildroot配置(僅更改的內容):

目標配置

體系結構:MIPS(小端)

體系結構變體:通用MIPS32

工具鏈配置

[*]啟用C ++支持

[*]啟用編譯器鏈接時間優化支持

我遵循了設置過程,并且buildroot使編譯器成功(mips-linux-gcc和g ++)。

Hello World文件(test-mips.cpp)

#include

using namespace std;

int main() {

cout << "hello world";

return 0;

}

我可以編譯Hello World,但是在目標設備上運行它時會引發錯誤:

dm500hd:~$ ./test-mips

./test-mips: line 1: EL@4?�P4: not found

./test-mips: line 1: syntax error: unexpected word (expecting ")")

僅當我為little-endian構建編譯器時,才會出現奇怪的字符:使用big-endian編譯的程序的錯誤是相同的,但使用空格而不是? .。

我嘗試了小字節序和大字節序,但問題是相同的。 那么在配置buildroot時我做錯了什么嗎?

注意 : cat /proc/cpuinfo游戲給我這個結果。 我應該更改架構變體嗎?

system type : BCM7413B1 STB platform

processor : 0

cpu model : Brcm4380 V4.4 FPU V0.1

BogoMIPS : 403.45

cpu MHz : 405.010

wait instruction : yes

microsecond timers : yes

tlb_entries : 32

extra interrupt vector : yes

hardware watchpoint : no

ASEs implemented : mips16

shadow register sets : 1

kscratch registers : 0

core : 0

VCED exceptions : not available

VCEI exceptions : not available

processor : 1

cpu model : Brcm4380 V4.4 FPU V0.1

BogoMIPS : 403.45

cpu MHz : 405.010

wait instruction : yes

microsecond timers : yes

tlb_entries : 32

extra interrupt vector : yes

hardware watchpoint : no

ASEs implemented : mips16

shadow register sets : 1

kscratch registers : 0

core : 0

VCED exceptions : not available

VCEI exceptions : not available

總結

以上是生活随笔為你收集整理的mips linux 编译器,linux - MIPS的交叉编译器似乎无法创建有效的程序 - 堆栈内存溢出...的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。