Last active
May 16, 2025 18:42
-
-
Save evaporei/34cfc3c85b90ef31547a4ef76dd6e176 to your computer and use it in GitHub Desktop.
smol odin executable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 3.5KiB | |
package hellope | |
foreign import "system:Kernel32.lib" | |
foreign Kernel32 { | |
OutputDebugStringA :: proc "stdcall" (cstring) --- | |
} | |
main :: proc() { | |
OutputDebugStringA("Hellope!\n") | |
} |
// 4.5KiB
package hellope
import "base:runtime"
main :: proc() {
runtime.print_string("Hellope!\n")
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
odin build . -no-crt -o:size -no-bounds-check -default-to-nil-allocator -disable-assert