[algogeeks] Re: Another SPOJ Problem -SIGSEGV -- Need Help

2011-06-05 Thread tec
Just try it yourself. Start with arbitrary 5-byte code you can think of, then fix the compiling/linking error, taking the hints in compiler error message. You will get it in the end. On May 24, 2:12 am, Dumanshu duman...@gmail.com wrote: I want to discuss the solution in C language. I want to

Re: [algogeeks] Re: Another SPOJ Problem -SIGSEGV -- Need Help

2011-05-24 Thread saurabh singh
An intense study of asm is not requiredchek ds out http://www.codeproject.com/KB/cpp/edujini_inline_asm.aspx if its of any help.. On Tue, May 24, 2011 at 3:14 PM, Dumanshu duman...@gmail.com wrote: hmm... so i need to think purely from C's point and not from asm or do i need to

[algogeeks] Re: Another SPOJ Problem -SIGSEGV -- Need Help

2011-05-23 Thread Dumanshu
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

Re: [algogeeks] Re: Another SPOJ Problem -SIGSEGV -- Need Help

2011-05-23 Thread saurabh singh
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