Hi nick, thanks for ur idea....
i looks gr8.... i have one question can we do something like gcc - c @list_of_C_source_file ../../[EMAIL PROTECTED] is there any way to do such thing. Also , i think i can compile .asm files programmed for NASM , with gcc !!! thanks & regards, navi ----- Original Message ----- From: Nick Clifton <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Cc: bug-binutils@gnu.org Sent: Wed, 23 Jul 2008 17:13:50 +0530 (IST) Subject: Re: linker problem ? help needed !!! Hi Navi, > I am little confused by your suggestion, > how will I specify the file extension .o for each object file. > > my present script is as follows : > > C:\STOIC\DEVELOPMENT\BIN\nasm -f aout .\asm\KERNEL.asm -o > C:\STOIC\DEVELOPMENT\OUTPUT\KERNEL.o > C:\STOIC\DEVELOPMENT\BIN\nasm -f aout .\asm\IntDefs.asm -o > C:\STOIC\DEVELOPMENT\OUTPUT\IntDefs.o > > gcc -c ckernel.c -o ../../OUTPUT\CKernel.o -I.\include > gcc -c common.c -o ../../OUTPUT\Common.o -I.\include > gcc -c IDT.c -o ../../OUTPUT\IDT.o -I.\include > gcc -c isr.c -o ../../OUTPUT\isr.o -I.\include > gcc -c stdio.c -o ../../OUTPUT\std.o -I.\include > gcc -c GUI.c -o ../../OUTPUT\GUI.o -I.\include > gcc -c Graphics.c -o ../../OUTPUT\Graphics.o -I.\include > gcc -c Timer.c -o ../../OUTPUT\Timer.o -I.\include > gcc -c keyboard.c -o ../../OUTPUT\keyboard.o -I.\include > gcc -c KrnlHeap.c -o ../../OUTPUT\KrnlHeap.o -I.\include > gcc -c Paging.c -o ../../OUTPUT\Paging.o -I.\include > pause > Can u suggest the enhancements now. How about: C:\STOIC\DEVELOPMENT\BIN\nasm -f aout .\asm\KERNEL.asm -o C:\STOIC\DEVELOPMENT\OUTPUT\KERNEL.o C:\STOIC\DEVELOPMENT\BIN\nasm -f aout .\asm\IntDefs.asm -o C:\STOIC\DEVELOPMENT\OUTPUT\IntDefs.o gcc -c ckernel.c -o ../../OUTPUT\CKernel.o -I.\include gcc -c common.c -o ../../OUTPUT\Common.o -I.\include gcc -c IDT.c -o ../../OUTPUT\IDT.o -I.\include gcc -c isr.c -o ../../OUTPUT\isr.o -I.\include gcc -c stdio.c -o ../../OUTPUT\std.o -I.\include gcc -c GUI.c -o ../../OUTPUT\GUI.o -I.\include gcc -c Graphics.c -o ../../OUTPUT\Graphics.o -I.\include gcc -c Timer.c -o ../../OUTPUT\Timer.o -I.\include gcc -c keyboard.c -o ../../OUTPUT\keyboard.o -I.\include gcc -c KrnlHeap.c -o ../../OUTPUT\KrnlHeap.o -I.\include gcc -c Paging.c -o ../../OUTPUT\Paging.o -I.\include echo ../../OUTPUT\*.o > files gcc -Wl,@files -o stoic.exe pause Cheers Nick _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils