How to compile C and CPP to elf by win32 clang?
How to compile C and CPP to elf by win32 clang?
My new OS(Hyperon, based macOS and FreeBSD and myself codes). But I don't know how to generate elf file by win32 clang?(I don't like GPL)
Re: How to compile C and CPP to elf by win32 clang?
-target i686-elf
managarm: Microkernel-based OS capable of running a Wayland desktop (Discord: https://discord.gg/7WB6Ur3). My OS-dev projects: [mlibc: Portable C library for managarm, qword, Linux, Sigma, ...] [LAI: AML interpreter] [xbstrap: Build system for OS distributions].
Re: How to compile C and CPP to elf by win32 clang?
Thanks, but I want to compile on windows.Korona wrote:-target i686-elf
Re: How to compile C and CPP to elf by win32 clang?
Clang does not care about your host OS, it is a cross compiler that can target any of its targets.
So that flag also works on Windows.
So that flag also works on Windows.
managarm: Microkernel-based OS capable of running a Wayland desktop (Discord: https://discord.gg/7WB6Ur3). My OS-dev projects: [mlibc: Portable C library for managarm, qword, Linux, Sigma, ...] [LAI: AML interpreter] [xbstrap: Build system for OS distributions].