09202024

Last update2016/05/28 14:38

12.プロジェクトディレクトリの外にあるファイルはどのように組み込めますか?

12.プロジェクトディレクトリの外にあるファイルはどのように組み込めますか?

By default, all files in the project directory is considered to take part in the project, and no files outside the project directory is considered to take part in the project.

To include a file in the project, that is located outside the project directory, perform the following steps:

  1. Use the menu command "File, New, Other..." to open the "New" wizard.
  2. Expand the "General" node and double-click on "File".
  3. Click on the "Advanced >>" button that is displayed in the new dialog box.
  4. Select the checkbox "Link to file in the file system" and browse to the file external to the project directory.
  5. Finally click on the "Finish" button.

A symbol link to the external file is now displayed in the Project Explorer view file tree.

If you want the new file to take part in building (compilation and linking), also perform the following steps:

  1. Right-click on the symbolic link that was created in the Project Explorer view file tree.
  2. In the context menu, select the menu command "Exclude from build..."
  3. Unselect the checkboxes in the dialog box, to make the file take part in the project build

11.どのようにすればRAMの消費を抑えられますか?

 11.どのようにすればRAMの消費を抑えられますか?

You can use the general -fpack-struct for file level, or you can specify the __attribute__((packed)) attribute on struct declarations or on individual member declarations within a certain struct.

ファイルレベルでは、一般的な-fpack-structの使用、また構造体の宣言・ある構造体の個々のメンバー宣言に__attribute__((packed))を付け加える等があります。

10. ‘stop on error‘ をどうしたらとめることが出来ますか?

 10. ‘stop on error‘ をどうしたらとめることが出来ますか?

Deselect the option for build settings "Stop on first build error"
Open the properties dialog for the project (Right-click on the project in the Project explorer and select Properties).
The C/C++ Build pane has at Behavior tab "Stop on first build error" that not shall be selected.

9.linkerの最適化はどのように設定できますか?

9.linkerの最適化はどのように設定できますか?

Linker optimization is the process where the linker removes unused code and data sections from the output binary. Runtime- and middleware libraries typically include many functions that are not used by all applications, thus vasting valuable memory unless removed from the output binary.

To enable linker optimization, select the "Remove unused code" and/or the "Remove unused data" checkboxes in the Project wizard as appropriate (at project creation time).

8.compilerの最適化はどのように設定できますか?

8.compilerの最適化はどのように設定できますか?

The GNU C/C++ compiler (and hence Atollic TrueSTUDIO) have 3 levels of compiler optimization (-O0 for no optimization up to -O3 for full optimization), and one level for size optimization (-Os) which is commonly required in embedded projects. 

To enable compiler optimization in the commercial versions of Atollic TrueSTUDIO, select command line option (-O0 to -O3 or -Os as appropriate) from the dropdown list in the "C/C++ Build, Settings, C compiler, Optimization" panel in the "Project Properties" dialog box.

In the free Lite version, enter the desired command line option in the "Other options" field in the "C/C++ Build, Settings, C compiler, Miscellaneous" panel in the "Project Properties" dialog box.

In addition to the simplifed optimization settings mentioned above, about 100 optimization settings can be set individually using various command line options and #pragmas. Consult the compiler manual for details.