Keil Logo Arm Logo

Use a Custom Translator

If you add a file with an unknown file extension to a project, you are asked to specify the file type.

You may select Custom File, and use a custom translator to process this file.

The custom translator is specified, along with its command line, in the Custom Arguments field of the Options for File... — Properties dialog.

Typically, the custom translator will generate a source file from the custom file. You need to add this source file to your project, and use the Assembler or Compiler to generate an object file that can be linked to your application.

Use a custom file

In this example, the program C:\UTILS\PreTrans.exe is used for custom.pre with the parameter –X to translate the file.

Note, the Always Build option has been used also, to ensure that the file is translated with every build process.

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.