Skip to content

Instantly share code, notes, and snippets.

@nufeng1999
Created June 21, 2021 05:47
Show Gist options
  • Select an option

  • Save nufeng1999/ccc6d7b1591b3347a10e6589b23238f7 to your computer and use it in GitHub Desktop.

Select an option

Save nufeng1999/ccc6d7b1591b3347a10e6589b23238f7 to your computer and use it in GitHub Desktop.
[编译arm版本的tcc] #编译 #arm #tcc

gcc------------------------------------ tcc-0.9.27----------------------

 GCC_ARCH="-m32" AR="arm-linux-ar" RANLIB=arm-linux-ranlib  CC=arm-linux-gcc LD=arm-linux-ld  AS=arm-linux-a PROCESSOR=ARM 
 
 ./configure --prefix=/arm-linux/opt/tcc \
 --sysroot=/arm-linux \
 --cross-prefix=arm-linux- \
 --libpaths=/arm-linux/lib \
 --crtprefix=/arm-linux/sysroot/usr/lib \
 --cpu=armv5tej
 
 ../arm-eabi-tcc -ar rcs ../arm-eabi-libtcc1.a arm-eabi-libtcc1.o arm-eabi-armeabi.o arm-eabi-alloca-arm.o arm-eabi-armflush.o
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment