⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 显示和定制工程和目标文件(1).htm

📁 ADS是一种嵌入式常用开发语言
💻 HTM
📖 第 1 页 / 共 5 页
字号:
              <LI><B>File Mappings:</B> Every file must be mapped so as to 
              identify it to the compiler. That is, this panel tells CodeWarrior 
              that files ending in .cpp are C++ source files and should 
              therefore be compiled using the C++ compiler. See Figure 2-9 for 
              more examples. </LI></UL>
            <TABLE cellSpacing=0 cellPadding=0 border=0>
              <TBODY>
              <TR>
                <TD><IMG height=426 
                  alt="Figure 2-9: The File Mappings options allow you to specify the treatment of files, based on their extension." 
                  src="显示和定制工程和目标文件(1).files/IcwwL2_Fig10.gif" width=624 
                  align=left> </TD></TR>
              <TR>
                <TD align=middle><FONT size=1><I>Figure 2-9: The File Mappings 
                  options allow you to specify the treatment of files, based on 
                  their extension.</I></FONT> </TD></TR></TBODY></TABLE></FONT>
            <UL><FONT face="Arial, Helvetica, sans-serif" size=2>
              <LI><B>Source Trees:</B> Source trees are similar to access paths. 
              Here you can enter file locations, such as file servers, that are 
              specific to your project. 
              <LI><B>x86 Target:</B> This panel allows you to set the type of 
              project (application, library, or DLL), and various aspects of the 
              project -- including how much memory the resulting program 
              requires. It is also where you specify the name of the file output 
              by the IDE. This name can -- and usually will -- be different from 
              the target's name (the one entered into the Target Settings 
              panel). </FONT></LI></UL></FONT>
            <P><FONT size=2> </FONT></P><FONT 
            face="Arial, Helvetica, sans-serif" size=2>
            <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR>
                <TD vAlign=top height=10><FONT 
                  face="Arial, Helvetica, sans-serif" color=#000000 
                  size=3><B><B>Setting Other 
                  Preferences</B></B><BR></FONT><BR><FONT 
                  face="Arial, Helvetica, sans-serif" size=2>
                  <P>CodeWarrior includes a variety of additional preferences 
                  that can help you customize your environment before beginning 
                  to work on your own programs.</P>
                  <P><B><FONT size=+1>Language Settings</FONT></B></P>
                  <P>Language Settings include the following items: (discussed 
                  further in Lesson 3)
                  <UL>
                    <LI><B>C/C++ Language:</B> There are an extremely large 
                    number of settings for the C/C++ compiler. Suffice it to say 
                    that you can alter them here. See Figure 2-11. </LI></UL>
                  <TABLE cellSpacing=0 cellPadding=0 border=0>
                    <TBODY>
                    <TR>
                      <TD><IMG height=422 
                        alt="Figure 2-10: C++ Language settings." 
                        src="显示和定制工程和目标文件(1).files/IcwwL2_Fig11.gif" width=626 
                        align=left> </TD></TR>
                    <TR>
                      <TD align=middle><FONT size=1><I>Figure 2-10: C++ 
                        Language settings.</I></FONT> </TD></TR></TBODY></TABLE>
                  <UL>
                    <LI><B>C/C+ Warnings:</B> These settings (Figure 2-10) tell 
                    the C/C++ compiler whether to provide warnings as your code 
                    is being compiled. Sometimes source code can contain 
                    elements that aren't quite correct but are not necessarily 
                    errors. These are called warnings. You can instruct the 
                    compiler to treat all warnings as errors so that you can 
                    quickly examine the questionable code in the editor. 
                    <LI><B>Windows RC:</B> A Windows-specific resource compiler. 
                    Resources are graphic elements (such as windows, buttons, 
                    and menu items) that can be built independent of your 
                    program code. This panel lets you specify a header file that 
                    the resource compiler uses when generating these interface 
                    elements. </LI></UL>
                  <P><B><FONT size=+1>Code Generation</FONT></B></P>
                  <P>Code Generation preferences include the following items:
                  <UL>
                    <LI><B>x86 Processor:</B> There are a number of decisions 
                    your compiler must make as it generates the machine code 
                    from your C or C++ source code. The settings in this panel 
                    help the compiler to optimize your code. This item will be 
                    labeled differently on each CodeWarrior platform. Figure 
                    2-11 shows the x86 version. This is discussed more in Lesson 
                    3. </LI></UL>
                  <TABLE cellSpacing=0 cellPadding=0 border=0>
                    <TBODY>
                    <TR>
                      <TD><IMG height=423 
                        alt="Figure 2-11: x86 Processor settings are specific to projects intended for a x86-based computer. CodeWarrior includes settings for each operating system it supports (directly, or through plug-ins)." 
                        src="显示和定制工程和目标文件(1).files/IcwwL2_fig12.gif" width=626 
                        align=left> </TD></TR>
                    <TR>
                      <TD align=middle><FONT size=1><I>Figure 2-11: x86 
                        Processor settings are specific to projects intended for 
                        a x86-based computer. CodeWarrior includes settings for 
                        each operating system it supports (directly, or through 
                        plug-ins).</I></FONT> </TD></TR></TBODY></TABLE>
                  <UL>
                    <LI><B>Global Optimizations:</B> This has got to be one of 
                    the most exciting and useful panels in all of CodeWarrior 
                    (see Figure 2-12). This panel allows you to set the global 
                    optimization level of the compiler. This means that you can 
                    control how efficient and fast the compiler tries to make 
                    your source code. However, speed comes at a price. The 
                    smaller and faster the source code, the more difficult it is 
                    to debug, and the longer it takes to compile. Fortunately, 
                    the panel spells it all out for you so you can make that 
                    decision <I>every time you optimize!</I> If you want to, I 
                    mean. You will have a great deal of fun with this panel as 
                    you adjust the settings to suit your needs and your 
                    projects. </LI></UL>
                  <TABLE cellSpacing=0 cellPadding=0 border=0>
                    <TBODY>
                    <TR>
                      <TD><IMG height=421 
                        alt="Figure 2-12: Use Global Optimization settings to speed up compiling of the code (Optimizations Off), or make your code execute faster (Levels 1 through 4)." 
                        src="显示和定制工程和目标文件(1).files/IcwL2_fig13.gif" width=625 
                        align=left> </TD></TR>
                    <TR>
                      <TD align=middle><FONT size=1><I>Figure 2-12: Use Global 
                        Optimization settings to speed up compiling of the code 
                        (Optimizations Off), or make your code execute faster 
                        (Levels 1 through 4).</I></FONT> </TD></TR></TBODY></TABLE>
                  <P><B><FONT size=+1>Linker Preferences</FONT></B></P>
                  <P>Linker preferences include the following items:
                  <UL>
                    <LI><B>x86 Disassembler:</B> The name and specific settings 
                    in this panel may differ a bit by platform, but the options 
                    are similar. They allow you to configure specific settings 
                    that the Linker must use when disassembling and debugging 
                    your target. 
                    <LI><B>x86 Linker:</B> The name and specific settings in 
                    this panel may differ a bit by platform, but the settings 
                    are similar (Figure 2-14). They allow you to configure 
                    specific settings that the Linker must use when building 
                    your target, such as specifying the entry point into your 
                    code. See Lesson 4. </LI></UL>
                  <TABLE cellSpacing=0 cellPadding=0 border=0>
                    <TBODY>
                    <TR>
                      <TD><IMG height=421 
                        alt="Figure 2-13: Each supported operating has a Linker settings panel. Here is the x86 version." 
                        src="显示和定制工程和目标文件(1).files/IcwwL2_fig14.gif" width=627 
                        align=left> </TD></TR>
                    <TR>
                      <TD align=middle><FONT size=1><I>Figure 2-13: Each 
                        supported operating has a Linker settings panel. Here is 
                        the x86 version.</I></FONT> </TD></TR></TBODY></TABLE>
                  <P>Settings for the editor can be found on the Custom Keywords 
                  panel. This panel allows you to configure the text editor to 
                  display various custom keywords in different colors. For 
                  example, if you like to use a keyword in your source code to 
                  label certain areas of the code in a different color, you can 
                  list it here. It will appear in the color you choose.</P>
                  <P>The Debugger Settings panel allows you to choose how the 
                  debugger should log data, handle watch points, etc. This is 
                  discussed in more detail in Lesson 5.</P></FONT>
                  <P><FONT face="Arial, Helvetica, sans-serif" size=2>Now you 
                  can begin to see how CodeWarrior's features help make 
                  programming easier. Now go check out your homework. Yes, you 
                  will have some homework assignments in this class. Then I'll 
                  see you back here for Lesson 3.</FONT><BR><!-- end main lesson content --><BR></P></TD></TR></TBODY></TABLE>
            <P><BR></P>
            <P><FONT size=1><A 
            href="http://www.withwind.net/study.htm"></A></FONT></FONT></P></TD></TR></TBODY></TABLE><A 
      href="http://www.pdazone.com.cn/develop/CodeWarrior/lesson2_2.htm"><FONT 
      size=2>下一节 </FONT></A></CENTER></DIV></TD></TR>
  <TR>
    <TD width="100%">
      <P align=right><NOBR><INPUT onclick=self.close(); type=button value="关闭此窗口 "></NOBR> 
      </P></TD></TR>
  <TR>
    <TD width="100%">
      <HR width="96%" color=#000000 noShade SIZE=1>
    </TD></TR>
  <TR>
    <TD class=font width="100%">
      <P align=center>Copyright(C) 2000 <A 
      href="http://www.tsinghua-solution.com.cn/" 
      target=_blank>北京清华北方思路信息技术有限公司</A> 版权所有<BR>未经许可,不得转载、摘登、结集出版<BR>联系电话:(8610)-62978899-146</P></TD></TR></TBODY></TABLE></CENTER></DIV></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -