FAQ 076: How to work with Pragmas in TargetLink

Question

How to add additional defines and includes statements in the generated code for example, like before and after global declarations or to insert #pragma statements at variable declarations and definitions. This could be for example required to implement memory mappings. 

Answer

Tags
Date 2026-05-11
Information Type Frequently Asked Questions

Stay up-to-date with our dSPACE direct newsletter service.

With our dSPACE newsletter service, we will keep you informed about current use cases and new solutions and products, as well as trainings and events. Sign up here for a free subscription.

Enable form call

At this point, an input form from Click Dimensions is integrated. This enables us to process your newsletter subscription. The form is currently hidden due to your privacy settings for our website.

External input form

By activating the input form, you consent to personal data being transmitted to Click Dimensions within the EU, in the USA, Canada or Australia. More on this in our privacy policy.