Avoiding the CRT
Posted: Sun Dec 23, 2018 2:29 pm
Hi.
Is there way to avoid\reduce usage of msvcrt functions import?
I can replace some of it with /DEFAULTLIB (then internal PB function use my alternative inline functions) but not every function can be handled that way.
For example 'memset' call in app entry point cause 'memset' stay in IAT etc.
In VS we can just set /Oi (/O2 "maximize speed") flags and compiler inserts the whole code for the function in place at its call point.
Or we can select some exact functions to be inlined with #pragma intrinsic(memset, strlen)
How to handle this in PB?
P.S.
Also same questions about 'MultiByteToWideChar' import by 'PeekS' but it's not so important.
Is there way to avoid\reduce usage of msvcrt functions import?
I can replace some of it with /DEFAULTLIB (then internal PB function use my alternative inline functions) but not every function can be handled that way.
For example 'memset' call in app entry point cause 'memset' stay in IAT etc.
In VS we can just set /Oi (/O2 "maximize speed") flags and compiler inserts the whole code for the function in place at its call point.
Or we can select some exact functions to be inlined with #pragma intrinsic(memset, strlen)
How to handle this in PB?
P.S.
Also same questions about 'MultiByteToWideChar' import by 'PeekS' but it's not so important.