I need to combine one eTPU executable into another eTPU executable. How can I do this?


Use the BClink directive ETPUIMAGE. During this linking, the specified executable will be linked in to the final executable. eTPU_C will perform checks to prevent conflicts between the two executables.

  1. Export the first executable with the following eTPU_C host interface macro in the first linker command file.
    #pragma write msc, ( ::ETPUcode );

What is Absolute Code Mode?


Absolute Code Mode in Byte Craft Limited compilers generates executable code from the compiler without a linking step. Absolute Code Mode still allows you to select object code from libraries and include it as part of an application.

What should I know about linking?

Linking was most useful in the age of limited computing resources, on self-hosting systems. Since our customers are cross-developing, and compiling resources are effectively unlimited (given the typical sizes of the embedded executables they create), linking has declined in importance.

We advocate Absolute Code Mode, a single compile-and-link step. Absolute Code Mode simply compiles the main C module to an executable, as opposed to an object file.

In fact, choosing to use object files can raise some interesting consequences:

How can I add a #define to the linker command file in BCLIDE?


If the #define is not already present in a header file or C program module, create a new header file for it and list the file in the Include Files list. Select the Include Files tab and click Add File. In the Open dialog, choose the file and click OK.

The compiler isn't obeying my customized layout of memory resources and functions. What's wrong?


Make sure you're supplying all #pragma directives to BClink. BClink uses the same device configuration information during linking as the compiler does during Absolute Code Mode. BClink performs a final code generation pass over your object files, and needs this information to allocate variables and program code locations.



Our windows products feature the BCLIDE, a custom-designed integrated development environment. Though everyone has their favourite IDE, BCLIDE has a few features that make it stand out:


| | |

All Byte Craft Limited Code Development Systems ship with math libraries. These libraries implement long math routines and other math operations that are not internally generated by the compiler. The math libraries ship with source code, so you can inspect the C code used to implement them.

Syndicate content