红联Linux门户
Linux帮助

请教makefile文件的编写

发布时间:2009-11-05 23:24:00来源:红联作者:easilylk
请问在LINUX下GCC的参数的详细说明哪位大侠能提供呢?
比如我现在想知道CFLAGS += -Os -Wall -march=armv4t 中的-Os和march=armv4t 是什么意思,应该怎么找呢?谢谢!
文章评论

共有 1 条评论

  1. alick 于 2009-11-05 23:59:03发表:

    这个显然是看手册了。man gcc 或者info gcc
    以下是对march的解释摘录:
    -march=name
    This specifies the name of the target ARM architecture. GCC uses
    this name to determine what kind of instructions it can emit when
    generating assembly code. This option can be used in conjunction
    with or instead of the -mcpu= option. Permissible names are:
    armv2, armv2a, armv3, armv3m, armv4, armv4t, armv5, armv5t,
    armv5te, armv6, armv6j, armv6t2, armv6z, armv6zk, armv7, armv7-a,
    armv7-r, armv7-m, iwmmxt, ep9312.