Download AppCOE User Manual
Transcript
APPLICATION COMMON OPERATING ENVIRONMENT USER MANUAL Generating Optimized Target Code This section describes how to generate optimized target code using AppCOE . Most of the configurations described below can also be changed at run time using the OS_Application_Init function. NOTE 1: This feature requires a target license. Click http://mapusoft.com/contact/ to send a request to receive licenses and documentation. NOTE 2: For all Optimized Target Code Generation the preprocessor OS_HOST flag is set to OS_FALSE. If the user intends to do the host development on the optimized target code, they need to change this preprocessor flag to OS_TRUE manually. NOTE 3: On Linux target, PC hangs while running demo_uitron from terminal if you terminate the execution by Ctrl+C. Make sure that #define OS_BUILD_FOR_SMP is set to False when compiling for non SMP processors. NOTE 4: If you select a library project, which either has, a C/C++ generic library project or AppCOE library project, Target Code Generator icon is disabled. NOTE 5: API optimization is not supported for AppCOE libraries linked with application project during target code generation. NOTE 6: The Eclipse Indexer may report errors after successfully building an application. These errors are related to missing symbols and are due to the fact that the indexer is not detecting the changes in the source files which are generated., and select Index > Rebuild from the context menu. To resolve the errors: 1. Right-click the Project, then Select Project > Properties > C/C++ General > Indexer. 2. Click Enable Project Specific Settings check box, and click Enable Indexer check box. Click Apply and OK.Optimized Target Code Generation for Ada Projects AppCOE allows Optimized Target Code Generation for Ada-C/C++ Changer Projects, when the projects are created with OS Abstractor Integration. NOTE 1: The project file generated to QNX Momentics 4.x IDE using optimized target does not enable the build variant, so you need to manually enable the build variant after importing in the QNX IDE. To enable the Build Variant: Select the project and go to Project Properties->C/C++ General->QNX C/C++Project. Select Build variant tab. To enable the build variant, select the X86 check box. NOTE 2: Check if the Indexer is enabled. Generating Optimized Target Code will not work if Indexer is OFF. NOTE 3: For all Optimized Target Code Generation the preprocessor OS_HOST flag is set to OS_FALSE. If the user intends to do the host development on the optimized target code, they need to change this preprocessor flag to OS_TRUE manually. NOTE 4: The QNX Momentics IDE has an issue where relative path names are not updated unless there is a modification to the project settings. This will cause the initial build of the Full Source version of OS Abstractor to fail since the project files were created in a different location than where they were installed. To force Momentics to update these paths: Right-click on the project and select Properties from the context menu. Then click Apply and close the properties window. NOTE 5: To generate optimized target code on Windows Interface, ensure that the flag INCLUDE_OS_PROCESS is set to OS_TRUE in the cross_os_usr.h configuration file. 135