How it is possible to add clib to gnu-efi on VS2019 ?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
gomidas
Posts: 15
Joined: Wed Nov 25, 2020 9:28 pm

How it is possible to add clib to gnu-efi on VS2019 ?

Post by gomidas »

Hello, I want o add clib to my vs2019 gnu-efi. I was told that I should download tianocore's edk2-libc. I have no idea the way to do it. I am not good about those implementions. If anyone know how to do it, is that possible they help me ? [-o<

Thank You.
PeterX
Member
Member
Posts: 590
Joined: Fri Nov 22, 2019 5:46 am

Re: How it is possible to add clib to gnu-efi on VS2019 ?

Post by PeterX »

1.) So you want to write a C standard library? Or port an existing one?

2.)
a) Which C compiler are you using? (VS is an IDE that can "run" different compilers.)
b) And on which host OS do you develop your own OS? (VS2019 can run on Windows and Linux.)

3.) How far are your efforts gone so far? Can you build a simple UEFI application already?

3.) And Tianocore EDK2 is a kind of competitor to Gnu-Efi. I don't think mixing them is reasonable.

4.) What have you programmed until now?
a) Did you ever program an OS before?
b) Do you have programmed some applications?

Greetings
Peter
gomidas
Posts: 15
Joined: Wed Nov 25, 2020 9:28 pm

Re: How it is possible to add clib to gnu-efi on VS2019 ?

Post by gomidas »

PeterX wrote:1.) So you want to write a C standard library? Or port an existing one?

2.)
a) Which C compiler are you using? (VS is an IDE that can "run" different compilers.)
b) And on which host OS do you develop your own OS? (VS2019 can run on Windows and Linux.)

3.) How far are your efforts gone so far? Can you build a simple UEFI application already?

3.) And Tianocore EDK2 is a kind of competitor to Gnu-Efi. I don't think mixing them is reasonable.

4.) What have you programmed until now?
a) Did you ever program an OS before?
b) Do you have programmed some applications?

Greetings
Peter
Thanks for your interest. This is the first time I go for OS dev. I seriously bored at home so I went for this. I use Windows10 - VS2019 - C lang standard: default legacy MSVC - Release x64 mode - Compiled as C code /TC. I already built a project and run it on a real device. I read keyboard-mouse events. I draw pixels on creen with GOP. I switch to UEFI at bios and boot it from usb that works as expected. It is better for me if I port an existing one but I have no idea where to get one.
PeterX
Member
Member
Posts: 590
Joined: Fri Nov 22, 2019 5:46 am

Re: How it is possible to add clib to gnu-efi on VS2019 ?

Post by PeterX »

Here is some info about C standard library implementations and creating an own variant:

https://wiki.osdev.org/C_Library

Greetings
Peter
Post Reply