##### Syntax

-m8k

##### Description

This option instructs the compiler and linker to generate code for parts with no more than 8K of code memory. In particular, the linker will always use RJMP instructions for relative branches which can wrap around the 8K memory space. Even if you are using less than 8K of memory for your application on devices with more than 8K of memory, you should still not use this switch as your application will fail.

##### Setting this in CrossStudio

To use the hardware multiplier for a project:

- Select the project in the Project Explorer.
- In the Code Generation Options group set the Flash Size property to 8K.

It is not possible to set the Flash Size property on a per-file basis.

##### See also

-m128k (Generate for 128K part) and -m8m (Generate for 8M part)