what is the use of __umoddi3() and __udivdi3() in the function printf()?
Samuel
samuelhard@yahoo.com
Thu Aug 15 22:20:00 GMT 2002
Hai,
I tried to create a program which independant of all system and standard libs. When i modified and make the printf function, the linker says missing symbols ___umoddi3 and ___udivdi3. IÃÂ globaly declared two functionsÃÂ with the name of the above and complied theÃÂ program, it works fine now.ÃÂ However i want know what is the use of the above symbols,ÃÂ can you tell me what is the use of these functions or variables?
I herewith the attached the modified version of printf.c and the makefile i used. The makefile contains refer other files also.The included header files does not refer any external symbols. However if you require i am ready to send those files also.
Thanks & Regards,
Sam ( samuelhard@yahoo.com ) Do You Yahoo!?
HotJobs, a Yahoo! service - Search Thousands of New Jobs Attachment:
Printf.c
Description: Printf.c
Kernel : Kernel.o CKernel.o Processor.o MemMan.o Heap.o Keyboard.o VGAText.o PIC.o Timer.o VGACursor.o PCI.o PCIEnum.o NumConvert.o Printf.o String.o Boot.bin OSLoader.bin
ld -Ttext 0x19000 --oformat binary -o Kernel.bin Kernel.o CKernel.o Processor.o MemMan.o Heap.o Keyboard.o IO.o VGAText.o VGACursor.o PIC.o Timer.o PCI.o PCIEnum.o NumConvert.o Printf.o modf.o String.o
Boot.bin: Boot/Boot.asm
nasmw -i Includes -w+orphan-labels -o Boot.bin Boot/Boot.asm
OSLoader.bin : Boot/OSLoader.asm
nasmw -i Includes -w+orphan-labels -o OSLoader.bin Boot/OSLoader.asm
Kernel.o : Kernel/Kernel.asm
nasmw -i Includes -w+orphan-labels -f coff -o Kernel.o Kernel/Kernel.asm
CKernel.o : Kernel/CKernel.c
gcc -ffreestanding -c -I Includes -o CKernel.o Kernel/CKernel.c
Processor.o : Kernel/Processor.asm
nasmw -i Includes -w+orphan-labels -f coff -o Processor.o Kernel/Processor.asm
MemMan.o : Kernel/MemMan.asm
nasmw -i Includes -w+orphan-labels -f coff -o MemMan.o Kernel/MemMan.asm
Heap.o : MemMan.o Kernel/Heap.c
gcc -ffreestanding -c -I Includes -o Heap.o Kernel/Heap.c
Keyboard.o : Kernel/Keyboard.asm
nasmw -i Includes -w+orphan-labels -f coff -o Keyboard.o Kernel/Keyboard.asm
VGACursor.o : IO.o Kernel/VGACursor.c
gcc -ffreestanding -c -I Includes -o VGACursor.o Kernel/VGACursor.c
VGAText.o : IO.o Kernel/VGAText.asm
nasmw -i Includes -w+orphan-labels -f coff -o VGAText.o Kernel/VGAText.asm
PIC.o : Kernel/PIC.asm
nasmw -i Includes -w+orphan-labels -f coff -o PIC.o Kernel/PIC.asm
IO.o : Kernel/IO.asm
nasmw -i Includes -w+orphan-labels -f coff -o IO.o Kernel/IO.asm
Timer.o : Kernel/Timer.asm
nasmw -i Includes -w+orphan-labels -f coff -o Timer.o Kernel/Timer.asm
PCI.o : IO.o Kernel/PCI.c
gcc -ffreestanding -c -I Includes -o PCI.o Kernel/PCI.c
PCIEnum.o : PCI.o Kernel/PCIEnum.c
gcc -ffreestanding -c -I Includes -o PCIEnum.o Kernel/PCIEnum.c
NumConvert.o : Src/NumConvert.c
gcc -ffreestanding -c -I Includes -o NumConvert.o Src/NumConvert.c
Printf.o : VGAText.o VGACursor.o modf.o Src/Printf.c
gcc -ffreestanding -c -I Includes -o Printf.o Src/Printf.c
modf.o : Src/modf.S
as -I Includes -o modf.o Src/modf.S
String.o : Src/String.c
gcc -ffreestanding -c -I Includes -o String.o Src/String.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Printf.c
Type: text/x-c
Size: 21929 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20020815/bfe8f712/attachment.bin>
More information about the Gcc
mailing list