piler and Make.ppt


文档分类:生活休闲 | 页数:约12页 举报非法文档有奖
1/12
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/12
文档列表 文档介绍
Linux Programming Tools Series 1 -- Compiler/Make Robert Yu May 25, 2011 How to Get Help in Linux ? man(1) – show online manual page. – usage: ? man keyword ? man section-no keyword ? man – a keyword ? info(1) – More detailed manual for mands. piler for C/C++ ? dump macro definition in preprocessing – g++ -E – dD – o ? dump include file hierarchy – G++ -H – o test ? dump file dependencies g++/gcc/ld ? Basic usage – gcc – o test – g++ -o test ? Common options –-I extra-include-path // add search paths for include files (order) –-L extra-lib-path // add dir to the list of directories for libs –-l xxx // to link extra –-Dmacro[=defn] // define extra macro –-g // add debug information –-pg // add extra code for gprof –-Olevel // -O3 maximum optimize ? Typical usage – g++ -O3 – g – DDEBUG -o test – I ../common/include – L ../common/lib – lcommon – lpthread gcc/g++ special usage (1) ?$ g++ -o test -### – Using built-in specs. – Target: x86_64-redhat-linux – Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info -- enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib -- enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable- languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable- plugin --with-java-home=/usr/lib/jvm/java--gcj- --with-cpu=generic -- host=x86_64-redhat-linux – Thread model: posix – gcc version 20071124 (Red Hat -42) – "/usr/libexec/gcc/x86_64-redhat-linux// cc1plus " "-quiet" "-D_GNU_SOURCE" "" "- quiet" "-dumpbase" "" "-mtune=generic" "-auxbase" "test" "-o" "/" – " as " "-Qy" "-o" "/" "/" – "/usr/libexec/gcc/x86_64-redhat-linux// collect2 " "--eh-frame-hdr" "-m" "elf_x86_64" "-- hash-style=gnu" "-dynamic-linker" "/lib64/ld-linux-x86-"

piler and Make 来自淘豆网www.taodocs.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数12
  • 收藏数0 收藏
  • 顶次数0
  • 上传人wangzhidaol
  • 文件大小161 KB
  • 时间2017-02-24