Problem with static linking

2009-07-15 Thread Zachary Turner
Hello, I've been trying to write a program that links to static libraries, and I've been having a lot of difficulties. Was wondering if someone can help me identify what's going wrong. The codebase is large, but is new to linux. It was originally developed on windows and then ported to linux. I

Re: Problem with static linking

2009-07-16 Thread Zachary Turner
On Thu, Jul 16, 2009 at 12:57 PM, Ian Lance Taylor wrote: > > Jakub Jelinek writes: > > >> -static option?  and 3) Is there a way to fix them?  I've even gone so > >> far as to manually run collect2 specifying my own hand edited command > >> line, but nothing I've tried there has worked either. >

Re: Pre and post increment

2009-07-20 Thread Zachary Turner
On Mon, Jul 20, 2009 at 10:30 AM, wrote: > Hello, > > Here is a program with output in gcc (4.3.2) on pre and post increments: > > //code begin > #include > > main () { >    int a; >    a=1; printf ("1. %d %d\n", ++a, a);            

naked functions on x86 architecture

2009-06-12 Thread Zachary Turner
Hi, I know this has been discussed before, I have read through some of the archives and read about some of the rationale.  I want to raise it again however, because I don't think anyone has ever presented a good example of where it is really really useful on x86 architectures. In general, it is v

Re: naked functions on x86 architecture

2009-06-12 Thread Zachary Turner
On Fri, Jun 12, 2009 at 11:32 AM, Paolo Bonzini wrote: >> This is one example, but it illustrates a general concept that I think >> is really useful and I personally have used numerous times for lots of >> other instructions than SCAS.  If there is a way to achieve this >> without using a naked fun

Re: naked functions on x86 architecture

2009-06-12 Thread Zachary Turner
On Fri, Jun 12, 2009 at 12:39 PM, Andrew Haley wrote: > Zachary Turner wrote: >> On Fri, Jun 12, 2009 at 11:32 AM, Paolo Bonzini >> wrote: >>>> This is one example, but it illustrates a general concept that I think >>>> is really useful and I personal

GCC/G++ Integration with MSVC

2009-07-08 Thread Zachary Turner
Hello, I recently had the idea that it would be great if GCC/G++ were integrated into MSVC (I'm sure I'm not the first).  That is, if you could put a user in front of a computer with Visual Studio installed and for them to be able to write an arbitrary program from start to finish without realizin