4.7.5 Function Size Limits

For all devices, the code generated for a regular function is limited only by the available program memory. See 4.7.3 Allocation of Executable Code for more details.