记个流水帐避免过后忘记怎么搭建的 - -php
Key | Value |
---|---|
系统 | Windows10 |
WSL系统 | Ubuntu |
http://www.loongnix.org/index.php/Cross-compilelinux
此处取第一个shell
最终效果如图:工具
写以下代码:测试
main.ccode
#include<stdio.h> void main() { printf("h\r\n"); }
编译:blog
/usr/local/mips-loongson-linux-gnu/bin/mips-linux-gnu-gcc main.c -march=gs464e -mips64r2 -mabi=64 file a.out
若是看到屏幕输出这个说明成功了:ip
a.out: ELF 64-bit LSB executable, MIPS, MIPS64 rel2 version 1 (SYSV), dynamically linked, interpreter /lib64/l, for GNU/Linux 3.2.0, not stripped