Skip to content

Instantly share code, notes, and snippets.

@evaporei
Last active May 16, 2025 18:42
Show Gist options
  • Save evaporei/34cfc3c85b90ef31547a4ef76dd6e176 to your computer and use it in GitHub Desktop.
Save evaporei/34cfc3c85b90ef31547a4ef76dd6e176 to your computer and use it in GitHub Desktop.
smol odin executable
// 3.5KiB
package hellope
foreign import "system:Kernel32.lib"
foreign Kernel32 {
OutputDebugStringA :: proc "stdcall" (cstring) ---
}
main :: proc() {
OutputDebugStringA("Hellope!\n")
}
@evaporei
Copy link
Author

evaporei commented May 2, 2025

odin build . -no-crt -o:size -no-bounds-check -default-to-nil-allocator -disable-assert

@evaporei
Copy link
Author

evaporei commented May 2, 2025

// 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