See if you want to learn how to compile a c code without main(),then this
can be done by chosing different entry points like _start or _asm and then
compiling it as gcc -O3 -nostartfiles <filename>......
But since in spoj you cant alter the way gcc compiles(I am not sure i assume
we cant do that),you have to think some alternate way.I have given you
hints.You have to use c as a window for the assembly code.DO some research
it will be fun...I dont think you will like it if i give you the solution
right away.And yes asm is not a different language,its just that the c code
is an abstraction to that asm codes.All codes eventualy are converted in asm
instruction codes.And with regard to this problem they both merge
PS:Please excuse i am bad at explainig things.....

On Mon, May 23, 2011 at 11:42 PM, Dumanshu <duman...@gmail.com> wrote:

> I want to discuss the solution in C language. I want to test my file
> using gcc compiler. For C the best solution is 5 chars. Any ideas
> about that??
>
> On May 23, 7:23 pm, saurabh singh <saurab...@gmail.com> wrote:
> > Using the asm construct of c......
> > Though i did this problem in native asm and my solution is 3 char
> ;).......
> > The point is you  have to know if not proficient with NASM(Net Assembler
> > used by SPOJ)...
> > If you need the solution mail me.....
> >
> > --
> > Saurabh Singh
> > B.Tech (Computer Science)
> > MNNIT ALLAHABAD
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algogeeks@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>
>


-- 
Saurabh Singh
B.Tech (Computer Science)
MNNIT ALLAHABAD

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to