zoukankan      html  css  js  c++  java
  • 如何生成a文件-源代码打包操作

    在S32DS中,以下是使用gcc编译器的打包情况。

    powerpc-eabivle-ar -r  "libmcLibForDT_0113_1342.a" $(OBJS) $(USER_OBJS) $(LIBS) $(OSPT)

    在cmd下,查看该命令的帮助如下:

    Usage: powerpc-eabivle-ar [emulation options] [-]{dmpqrstx}[abcDfilMNoPsSTuvV] [--plugin <name>] [member-name] [count] archive-file file...
    powerpc-eabivle-ar -M [<mri-script]
    commands:
    d - delete file(s) from the archive
    m[ab] - move file(s) in the archive
    p - print file(s) found in the archive
    q[f] - quick append file(s) to the archive
    r[ab][f][u] - replace existing or insert new file(s) into the archive
    s - act as ranlib
    t - display contents of archive
    x[o] - extract file(s) from the archive
    command specific modifiers:
    [a] - put file(s) after [member-name]
    [b] - put file(s) before [member-name] (same as [i])
    [D] - use zero for timestamps and uids/gids
    [U] - use actual timestamps and uids/gids (default)
    [N] - use instance [count] of name
    [f] - truncate inserted file names
    [P] - use full path names when matching
    [o] - preserve original dates
    [u] - only replace files that are newer than current archive contents
    generic modifiers:
    [c] - do not warn if the library had to be created
    [s] - create an archive index (cf. ranlib)
    [S] - do not build a symbol table
    [T] - make a thin archive
    [v] - be verbose
    [V] - display the version number
    @<file> - read options from <file>
    --target=BFDNAME - specify the target object format as BFDNAME
    optional:
    --plugin <p> - load the specified plugin
    emulation options:
    No emulation specific options
    powerpc-eabivle-ar: supported targets: elf32-powerpc aixcoff-rs6000 elf32-powerpcle ppcboot elf32-little elf32-big plugin srec symbolsrec verilog tekhex binary ihex
    Report bugs to <http://www.sourceware.org/bugzilla/>

  • 相关阅读:
    [刷题] PTA 7-32 说反话-加强版
    [算法] 堆
    [笔记] 《c++ primer》显示器程序 Chapter7
    [笔记] 《c++ primer》书店程序 Chapter7
    [c++] <vector>
    [笔记] 《c++ primer》书店程序 Chapter2
    [笔记] 《c++ primer》书店程序 Chapter 1
    253. Meeting Rooms II
    461. Hamming Distance
    252. Meeting Rooms
  • 原文地址:https://www.cnblogs.com/praiseslow/p/13294269.html
Copyright © 2011-2022 走看看