smbian gccコンパイラ最適化

3377 ワード

1です。gccc 4にアップグレードしますhttp://www.cnblogs.com/felixYeou/archive/2009/02/18/1392847.html
2.gcce最適化パラメータは、3 rd_についてmrと3 rd_FP 1が生成したインストールパッケージサイズhttp://wiki.forum.nokia.com/index.php/%E5%85%B3%E4%BA%8E3rd_mr%E 5%92%8 C 3 rd_FP 1%E 7%94%9 F%E 6%88%90%E 7%9 A%84%E 5%E 8%E 8%A 3%85%E 5%E 5%E 5%E 5%A 4%A 7%E 5%B 0%8 F
3です。gccc最適化2 http://wiki.forum.nokia.com/index.php/GCCE_compler_options
4.armアーキテクチャとコマンドセットhttp://zh.wikipedia.org/zh/ARM%E6%9E%B6%E6%A7%8B
5です。armコマンドセットを変更します
C:/S 60/devices/Nokia_N 97_SDK_v 1.0/epoc 32/tools/complation_config
元:
TARGETARCH_OPTTION=-markch=armv 5 t
変更:
TARGETARCH_OPTTION=-markch=armv 5 te
 
6です。arm option
http://gcc.gnu.org/onlinedocs/gcc-3.4.6/gcc/ARM-Options.html
 
7.arm指令集http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0100i/index.html
8.どうやって消しますか -Wno-ctor-dtor-prvacy警告
で/epoc 32/tools/complation_config/gccel.mkファイルで「-Wno-ctor-dtor-prvacy」をCPP_に移動します。LANG_OPTTION below
になります
CCWARNINGS.CONTROL_OPTTION=-Wall-Wno-unknown-pragmas
CPP_LANG_OPTION=-x c++ -Wno-ctor-dtor-privacy
9。n97 sdk    , ARM_INSTRUCTION_SET=-marm ARM_INSTRUCTION_SET=   。
3.3        Target Plat forms and Varants     Appliations can be built for different target plot forms、to serve different purposes.The re are two mail Target plot forms written in sharterms as WINS and MARM、where WINS denotes a Windows Single process platforment Windowsand MARM means a Multiprocess ARM plotform running in a real target device.
    In addition、the WINC plotform is a target build for Windows Connective appration engins.Under Symbian OS v 6.0 and later releass、the MARM target isのlonger supported.Instead、it has been expaded ARMI、The ARint。 and THUMB.ARM 4 uss 32-bit instructions,which generallly results in faster code.THUMB uses 16-bit instructions,which gener ally relt in a smaltler,on-disk footprint,but slower exection.
    ARM 4 code cannot be linked with THUMB code,and vice versa.Code commpiled for ARMI can be linked against THUMB or ARM 4 code.For a third-party developer,ARMI is the safest chocologe    Each plotform may provide two variants:u deb and ure for programs debuging and for release mode,repectively.Both ub and ure builds(u denotes Uniode and debdicates debug)Intransthen    Although the code may be 100 percent identical,appication s that are built for the WINS plot form cannot run n n ARM-processor target device.
    アプリケーションは異なる用途でマルチプラットフォームのコンパイルができます。最も主要な二つのプラットフォームWINSとMARM、WINSはシミュレータサービスで、MARMはマルチプロセッサのarmプラットフォーム(リアルタイムシステム)です。
    またi,WINCプラットフォームはwindows下の接続プログラムエンジンである。smbian os 6以降のバージョンでは、MARMはサポートされていません。それはARMI、ARM 4、and THUMBに拡張されました。 ARM 7 and ARM 9プラットフォームはARM M 4に対応しています。 and THUMB 2セットの命令です。ARM 4は32ビットの命令を使用して、より速いコードを生成することができます。Thumbは16の命令を使用して、より小さいが、より遅いアプリケーションを生成することができます。
    ARM 4コンパイルコードは、linkTHUMBコンパイルできないコードです。逆も同じです。ARMIでコンパイルしたコードは、linkからTHUMB、ARM 4までコンパイルされたコードです。第三者開発者にとって、ARMIは安全な選択です。
     各プラットフォームは2セットの変数を提供することができます。Dubbとurelはそれぞれdebugとreleaseモードに対応しています。
     コードは全く同じですが、WINSコンパイルのアプリケーションはARMアーキテクチャ上では全く動作しません。
 
 
10.コンパイルエラー「cannot find-lsup++ http://blog.csdn.net/actual_/archive/2009/11/11/4799963.aspx
11.VistaシステムにSymbian開発環境を構築する実践http://blog.csdn.net/sharetop/archive/2008/02/23/2115115.aspx