FAQ answer

How do I install the library?

Ddr-ArdMeg is distributed as source code only. In other words:

  1. Download the source file.

  2. Decompress the downloaded file to a suitable directory.

  3. Import the CPP- and H-files into your project.

Recomended compiler flags are:

-Os -std=c++11 -fshort-enums -ffunction-sections -fdata-sections
-fno-exceptions

Recomended linker flags are:

-mrelax -Wl,--gc-sections

I have also had some success with the -flto flag (link time optimization). The best case reduced code size by 15%, no improvement in performance. The worst case increased code size by about 10%.

 

There are obviously a plethora of other compiler/linker flags that may have impact on performance and code size. However, the settings above have, during the development of Ddr-ArdMeg, consistently generated the smallest and fastest code for the library. No other -Ox flag has yet beaten -Os.

 

Note

If your personal coding style requires another -Ox flag than -Os in order to reach acceptable size and performance, the size of Ddr-ArdMeg may increase and the performance may decrease.

Back to FAQ

Events

April 10th, 2017
Beta release 1.00 goes live.

March 15, 2017
Site goes live. Beta release is in the making.