The size of executable code is not included in the value of total logical memory or max memory calculations. total logical memory reports the actual memory requirement for SAP ASE configuration, excluding any memory that is required for the executable.
The memory requirements for executable code is managed by the operating system and is beyond the control of SAP ASE. Consult your operating system documentation.