Thank you, now itoa works but I'm a little bit worried about this :
Code:
libucrt.lib
kernel32.lib(KERNEL32.dll) : warning LNK4237: /SUBSYSTEM:NATIVE specified when importing from 'KERNEL32.DLL'; Use /SUBSYSTEM:CONSOLE or /SUBSYSTEM:WINDOWS.
libucrt includes kernel32.dll, It's fine because I'm not using any windows related function but at the same time I'll be linking my kernel to some dlls in the future (for e.g. the driver development kit or Graphics API), so the time I'll add DLL importing to my bootloader the bootloader will likely fail because it cannot find kernel32.dll.
This is the related document :
https://learn.microsoft.com/en-us/cpp/e ... w=msvc-170On top of that I may be naming some functions a similar name to windows one's
here are the exported functions :
Code:
Section contains the following imports:
KERNEL32.dll
FFFF80000000B000 Import Address Table
FFFF8000000138C0 Import Name Table
0 time date stamp
0 Index of first forwarder reference
4F5 RtlCaptureContext
4FD RtlLookupFunctionEntry
504 RtlVirtualUnwind
3A0 IsDebuggerPresent
5E6 UnhandledExceptionFilter
5A4 SetUnhandledExceptionFilter
27D GetLastError
564 SetLastError
232 GetCurrentProcess
5C4 TerminateProcess
3A8 IsProcessorFeaturePresent
178 ExitProcess
1C5 FreeLibrary
295 GetModuleHandleW
294 GetModuleHandleExW
2CD GetProcAddress
36C HeapAlloc
370 HeapFree
149 EnterCriticalSection
3E0 LeaveCriticalSection
123 DeleteCriticalSection
1B6 FlsGetValue
1B7 FlsSetValue
386 InitializeCriticalSectionAndSpinCount
3E6 LoadLibraryExW
3D4 LCMapStringW
3AE IsValidCodePage
1CC GetACP
2B6 GetOEMCP
1DB GetCPInfo
2F8 GetStringTypeW
412 MultiByteToWideChar
637 WideCharToMultiByte
DA CreateFileW
503 RtlUnwindEx
145 EncodePointer
487 RaiseException
5D8 TlsGetValue
5D9 TlsSetValue
4FF RtlPcToFileHeader
555 SetFilePointerEx
57F SetStdHandle
1B9 FlushFileBuffers
64B WriteFile
21A GetConsoleOutputCP
216 GetConsoleMode
94 CloseHandle
64A WriteConsoleW