ADS编译选项小技巧
来源:互联网 发布:手机音频驱动软件 编辑:程序博客网 时间:2024/05/09 07:08
由于需要给MTK平台提供一些API,用ADS编译后发现生成的库文件是.a后缀的,因为习惯使用.lib形式的后缀,又担心直接修改后缀名称会出问题,所以想研究一下怎么把.a修改成.lib文件
命令行模式下输入armar查询参数,发现了几个比较需要的参数:
-x Extract members in <file_list> placing in files of the same name.
-t Print table of contents of archive.
-create Force creation of a new archive.
于是,输入armar -t csk2.a查看了库文件的组成文件列表,然后输入armar -x csk2.a解压出全部.o文件,最后armar -create csk2.lib *.o,成功生成csk2.lib。
后来直接把*.o文件改为*.LIB文件,发现也能正常使用.................
-r Insert files in <file_list>, replace existing members of the same name.
-d Delete the members in <file_list>.
-x Extract members in <file_list> placing in files of the same name.
-m Move files in <file_list>.
-p Print files to stdout.
-a pos Insert/move files after file named <pos>.
-b pos Insert/move files before file named <pos>.
-u Update older files only, used with -r.
-d Delete the members in <file_list>.
-x Extract members in <file_list> placing in files of the same name.
-m Move files in <file_list>.
-p Print files to stdout.
-a pos Insert/move files after file named <pos>.
-b pos Insert/move files before file named <pos>.
-u Update older files only, used with -r.
-n Do not add a symbol table to an object archive.
-s Force regeneration of archive symbol table.
-t Print table of contents of archive.
-zs Show the symbol table.
-zt Summarize the archive contents (sizes + entries).
-c Suppress warning when a new archive is created.
-C Do not overwrite existing files when extracting.
-T Truncate file names to system maximum length.
-v Give verbose output.
-create Force creation of a new archive.
-via file Take additional arguments from via file.
-sizes List the size of each member and the library total.
-entries List sections containing ENTRY points.
-vsn Print the current Armar Version.
-help Print this message.
-s Force regeneration of archive symbol table.
-t Print table of contents of archive.
-zs Show the symbol table.
-zt Summarize the archive contents (sizes + entries).
-c Suppress warning when a new archive is created.
-C Do not overwrite existing files when extracting.
-T Truncate file names to system maximum length.
-v Give verbose output.
-create Force creation of a new archive.
-via file Take additional arguments from via file.
-sizes List the size of each member and the library total.
-entries List sections containing ENTRY points.
-vsn Print the current Armar Version.
-help Print this message.
Examples:-
armar -r mylib.a obj1 obj2 obj3...
armar -x mylib.a ?sort*
armar -d mylib.a hash.o
armar -tv ansilib.a
armar -x mylib.a ?sort*
armar -d mylib.a hash.o
armar -tv ansilib.a
- ADS编译选项小技巧
- [小技巧] gcc 编译选项-###
- ADS调试工具小技巧
- 编译内核小技巧
- Javac编译小技巧
- PB 编译小技巧
- GCC使用技巧之编译选项
- ADS编译问题
- Android平台编译小技巧
- iOS小技巧 - 选择编译
- ADS简单程序编译分析
- vista使用小技巧-文件夹选项(Folder Options)
- vista使用小技巧-文件夹选项(Folder Options)
- Android test 小技巧之怎样开启开发者选项
- 分享我使用Vim的小技巧和常用选项
- JavaScript实现选项卡时的小技巧
- 轮播swiper配置选项--前端小技巧
- g++/gcc 常见选项。(muduo 编译小程序举例)
- Message Handling
- 字符串相关
- 关于memcached out of memory这个错误
- php 5.3将提供改进的Lambda函数
- 最简便的清空memcache的方法
- ADS编译选项小技巧
- 关于邮件群发的经验和技巧
- 学会和同事相处的30个原则
- .NET九重境界
- CSDN上的第一篇博客
- eclipse3.2 + tomcat5.5 发布web应用时 server.xml 的设置
- Apache2.2 configure - 编译配置帮助中文
- Login failed for user 'username'. The user is not associated with a trusted SQL Server connection
- 端口对照表