Component: String functions

Macro name

CYGPKG_LIBC_STRING

Type

Dummy

Description

Options associated with the standard string functions

Option: Inline versions of <string.h> functions

Macro name

CYGIMP_LIBC_STRING_INLINES

Type

Boolean

Description

This option chooses whether some of the particularly simple string functions from <string.h> are available as inline functions. This may improve performance, and as the functions are small, may even improve code size.

Option: Provides strtok()

Macro name

CYGFUN_LIBC_strtok

Type

Boolean

Description

This option chooses whether the strtok() function is to be available. Some space may be saved if not.

Component: Options for string function optimization

Macro name

CYGPKG_LIBC_STRING_OPTIMIZATIONS

Type

Dummy

Description

This component lets you choose between different implementations of the string functions with different tradeoffs. Most of the string functions can be implemented in two ways. One approach is geared towards smaller code size, while the other tries to improve execution speed at the expense of code size.

Option: Fast

Macro name

CYGIMP_LIBC_STRING_PREFER_FAST

Type

Radio

Description

This option improves string function execution speed at the expense of code size. This option is overriden if the code is compiled with the -Os option to the compiler.

Option: Small

Macro name

CYGIMP_LIBC_STRING_PREFER_SMALL

Type

Radio

Description

This option tries to reduce string function code size at the expense of execution speed. The same effect can be produced if the code is compiled with the -Os option to the compiler.