Page 1 of 1

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

Posted: Wed Dec 02, 2020 11:51 am
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.

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

Posted: Wed Dec 02, 2020 4:25 pm
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

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

Posted: Sat Dec 26, 2020 3:18 am
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.

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

Posted: Sat Dec 26, 2020 3:54 am
by PeterX
Here is some info about C standard library implementations and creating an own variant:

https://wiki.osdev.org/C_Library

Greetings
Peter