Re: [Mingw-w64-public] i686-w64-mingw32 and x86_64-w64-mingw32 coexisting
On Fri, Jan 15, 2010 at 8:32 AM, Chris Sutcliffe ir0nh...@gmail.com wrote: Hi All, Is it possible for i686-w64-mingw and x86_64-w64-mingw32 to coexist in the same directory? I realize the majority of the directory structure is unique to the compiler, but things like libiberty.a are in the 'lib' directory of both compilers and they both have a 'mingw32' directory that is either a symlink or a copy of the corresponding compiler directory. Is libiberty used as a host lib or a target lib? -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] i686-w64-mingw32 and x86_64-w64-mingw32 coexisting
On 2/21/2010 21:35, NightStrike wrote: On Fri, Jan 15, 2010 at 8:32 AM, Chris Sutcliffeir0nh...@gmail.com wrote: Hi All, Is it possible for i686-w64-mingw and x86_64-w64-mingw32 to coexist in the same directory? I realize the majority of the directory structure is unique to the compiler, but things like libiberty.a are in the 'lib' directory of both compilers and they both have a 'mingw32' directory that is either a symlink or a copy of the corresponding compiler directory. Is libiberty used as a host lib or a target lib? Hi, libiberty is usually built by the host compiler, used by the newly built gcc backends. Some binutils tools use it too. IMHO, there is little reason to install it, sourceware make install does it anyway. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] i686-w64-mingw32 and x86_64-w 64-mingw32 coexisting
On Sun, 21 Feb 2010 09:56:46 JonY wrote: On 2/21/2010 21:35, NightStrike wrote: On Fri, Jan 15, 2010 at 8:32 AM, Chris Sutcliffeir0nh...@gmail.com wrote: Hi All, Is it possible for i686-w64-mingw and x86_64-w64-mingw32 to coexist in the same directory? I realize the majority of the directory structure is unique to the compiler, but things like libiberty.a are in the 'lib' directory of both compilers and they both have a 'mingw32' directory that is either a symlink or a copy of the corresponding compiler directory. Is libiberty used as a host lib or a target lib? Hi, libiberty is usually built by the host compiler, used by the newly built gcc backends. Some binutils tools use it too. IMHO, there is little reason to install it, sourceware make install does it anyway. I think this library is really only necessary if you install bfd (from binutils), since libbfd and libopcodes depend on libiberty. Otherwise, it's another compiler support library in the vein of zlib that is distributed in gcc. I don't install libbfd when installing the toolchain, so I have actually marked it (correctly or incorrectly) as no_install in the toplevel Makefile.def (I don't think I've never been able to make the --enable-libiberty-install=no work properly) Personally, I think that libbfd is so unstable and poorly documented that I really don't know why it would be installed (with its dependencies) to link against - anything that dares to use it really should be source compiled against a specific version :) (Although the toplevel Makefile.def file depends the libstdc++, libobjc, and fastjar on libiberty, I believe that this dependency is for target tools, and not the target libraries themselves, which would mean that the target library shouldn't be installed either...) -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] i686-w64-mingw32 and x86_64-w64-mingw32 coexisting
On Sun, Feb 21, 2010 at 9:56 AM, JonY jo...@users.sourceforge.net wrote: On 2/21/2010 21:35, NightStrike wrote: On Fri, Jan 15, 2010 at 8:32 AM, Chris Sutcliffeir0nh...@gmail.com wrote: Hi All, Is it possible for i686-w64-mingw and x86_64-w64-mingw32 to coexist in the same directory? I realize the majority of the directory structure is unique to the compiler, but things like libiberty.a are in the 'lib' directory of both compilers and they both have a 'mingw32' directory that is either a symlink or a copy of the corresponding compiler directory. Is libiberty used as a host lib or a target lib? Hi, libiberty is usually built by the host compiler, used by the newly built gcc backends. Some binutils tools use it too. IMHO, there is little reason to install it, sourceware make install does it anyway. It's a static lib, though. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
[Mingw-w64-public] common compiler #defines for cross-platform/compiler code
compiler-defined #defines so you can write cross-platform code better. one source code, multiple targets (djgpp, 9x/me, nt-family, vista/7). I have a web page with a g++ wrapper batch file that makes vista/7-compatible code by adding a manifest XML windows resource, which you supply parameters. it switches out compiler(s) of your choice. you only get to choose between a 32-bit and a 64-bit target compiler. http://JesusnJim.com/code/mingw.html the batch file has built-in help, albeit lengthy, so make sure your command shell has a long enough layout buffer, at least 100 lines - I usually choose 9900. I have a common compiler switches web page. http://JesusnJim.com/programming/common-compiler-switches.html it lists the most useful of the gcc compiler switches I have discovered along the way. common compiler #defines page: at http://JesusnJim.com/programming/common-compiler-defines.html any additions to these pages welcome. what I don't have is the mingw switches and command-line for making DLL's. any contribution would only help me help someone else, and I could augment my g++ wrapper batch file. Jim Michaels jmich...@yahoo.com(main) JesusnJim.com (my site) DoLifeComputers.JesusnJim.com (Do Life Computers group site which I lead) while (stone != rolling) moss++; --- Computer memory/disk size measurements: [KB KiB] [MB MiB] [GB GiB] [TB TiB] [10^3B=1000B=1KB][10^6B=100B=1MB][10^9B=10B=1GB][10^12B=1B=1TB] [2^10B=1024B=1KiB][2^20B=1048576B=1MiB][2^30B=1073741824B=1GiB][2^40B=1099511627776B=1TiB] Note that with disks, a disk size is measured in GB or TB, not in GiB or TiB. computer memory (RAM) is measured in MiB and GiB. --- Robot dog food: Cables n' Bits --- adress=seg4+ofs; (ambiguity - a double-minded compiler is unstable in all its ways) biosdsk2.h:733: warning: suggest parentheses around '+' inside '' --- -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] common compiler #defines for cross-platform/compiler code
On 2/22/2010 07:59, Jim Michaels wrote: compiler-defined #defines so you can write cross-platform code better. one source code, multiple targets (djgpp, 9x/me, nt-family, vista/7). I have a web page with a g++ wrapper batch file that makes vista/7-compatible code by adding a manifest XML windows resource, which you supply parameters. it switches out compiler(s) of your choice. you only get to choose between a 32-bit and a 64-bit target compiler. http://JesusnJim.com/code/mingw.html the batch file has built-in help, albeit lengthy, so make sure your command shell has a long enough layout buffer, at least 100 lines - I usually choose 9900. I have a common compiler switches web page. http://JesusnJim.com/programming/common-compiler-switches.html it lists the most useful of the gcc compiler switches I have discovered along the way. common compiler #defines page: at http://JesusnJim.com/programming/common-compiler-defines.html any additions to these pages welcome. what I don't have is the mingw switches and command-line for making DLL's. any contribution would only help me help someone else, and I could augment my g++ wrapper batch file. Hi, Nice pages. see http://gcc.gnu.org/onlinedocs/gcc/index.html for help on GCC command line. More specifically the -shared option in http://gcc.gnu.org/onlinedocs/gcc/Link-Options.html For compiler defines, see http://predef.sourceforge.net/. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] x64 can't cast ptr to DWORD
You should be able to use the same code for both if you use DWORD_PTR On Sun, Feb 21, 2010 at 6:30 PM, Jim Michaels jmich...@yahoo.com wrote: it's 32-bit windows 9x code, but the target is 64-bit, so I have to disable the 9x code. I found a workaround on the internet (great place to look for solutions): #if !defined(_WIN64) ...//win9x code #endif From: Ozkan Sezer seze...@gmail.com To: Jim Michaels jmich...@yahoo.com Cc: mingw64 mingw-w64-public@lists.sourceforge.net Sent: Fri, February 19, 2010 1:28:02 AM Subject: Re: [Mingw-w64-public] x64 can't cast ptr to DWORD On Fri, Feb 19, 2010 at 11:25 AM, Jim Michaels jmich...@yahoo.com wrote: after much difficulty trying to get subscribed to the list, here is my question. #define CAST(x) reinterpret_castDWORD( x ) or #define CAST(x) (DWORD)( x ) ... // All msdos data structures must be packed on a 1 byte boundary #pragma pack (1) struct { DWORD StartingSector ; WORD NumberOfSectors ; DWORD pBuffer; } ControlBlock; #pragma pack () ... ControlBlock.pBuffer = CAST(buffer) ; dgeomlib.cpp:178: error: cast from 'unsigned char*' to 'DWORD' loses precision this only occurs on 64-bit target compiler. how can I circumvent? Use DWORD_PTR instead. or, how can I use ifdefs to disable this windows 9x code only for x64 target (obviously the x64-output compiler must have some sort of #define?)? #ifdef _WIN64 ... #endif should do? Jim Michaels jmich...@yahoo.com(main) JesusnJim.com (my site) -- Ozkan I don't think it's going to fit in 32 bits. -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] Fwd: MinGW-w64
Sure, just give me a link and the desired text. On Sun, Feb 21, 2010 at 9:18 PM, Jarrod Chesney jarrod.ches...@gmail.com wrote: Hi Nightstrike Can you please action this. Begin forwarded message: From: Chris Sutcliffe ir0nh...@gmail.com Date: 22 February 2010 12:17:16 PM AEST To: Jarrod Chesney jarrod.ches...@gmail.com Subject: Re: MinGW-w64 Hi Jarrod, Would you mind if EmergeDesktop was added to the list of projects using mingw-w64 no the mingw-w64 frontpage? I would much appreciate it, thank you! Chris -- Chris Sutcliffe http://emergedesktop.org http://www.google.com/profiles/ir0nh34d -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] Fwd: MinGW-w64
Done On Sun, Feb 21, 2010 at 9:51 PM, Chris Sutcliffe ir0nh...@gmail.com wrote: Sure, just give me a link and the desired text. Emerge Desktop - http://emergedesktop.org Thank you! Chris -- Chris Sutcliffe http://emergedesktop.org http://www.google.com/profiles/ir0nh34d -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public