Книга: Microsoft Windows Embedded CE 6.0 Exam Preparation Kit

External Dependencies and Installable ISRs

External Dependencies and Installable ISRs

It is important to keep in mind that LoadIntChainHandler loads ISR DLLs into kernel space, which means that the installable ISR cannot call high-level operating system APIs and cannot import or implicitly link to other DLLs. If the DLL has explicit or implicit links to other DLLs, or if it uses the C run-time library, the DLL will not be able to load. The installable ISR must be completely self-sufficient.

To ensure that an installable ISR does not link to the C run-time libraries or any DLLs, you must add the following lines to the Sources file in your DLL subproject:

NOMIPS16CODE=1
NOLIBC=1

The NOLIBC=1 directive ensures that the C run-time libraries are not linked and the NOMIPS16CODE=1 option enables the compiler option /QRimplicit-import, which prevents implicit links to other DLLs. Note that this directive has absolutely no relationship to the Microprocessor without Interlocked Pipeline Stages (MIPS) CPU.

Оглавление книги

Оглавление статьи/книги

Генерация: 4.426. Запросов К БД/Cache: 3 / 1
поделиться
Вверх Вниз