• Lucid Dreaming - Dream Views




    Results 1 to 9 of 9

    Hybrid View

    1. #1
      Banned
      Join Date
      Apr 2007
      Location
      Out Chasing Rabbits
      Posts
      15,193
      Likes
      935
      I have mingw on my PC at work, I'll load it up on my Mac since XCode is the best IDE anyway. I didn't know that I could cross compile from the Mac for Windows... does it still perform the multipass optimization?

    2. #2
      FBI agent Ynot's Avatar
      Join Date
      Oct 2005
      Gender
      Location
      Southend, Essex
      Posts
      4,337
      Likes
      14
      AFAIK cross-compiling with MinGW produces identical results as native compiling
      (\_ _/)
      (='.'=)
      (")_(")

    3. #3
      Banned
      Join Date
      Apr 2007
      Location
      Out Chasing Rabbits
      Posts
      15,193
      Likes
      935
      Beautiful, I can get rid of that go-awful PC at my workstation.

      Dev-C++ and Visual Studios are nice, but it like a little toy compared to XCode.

    4. #4
      FBI agent Ynot's Avatar
      Join Date
      Oct 2005
      Gender
      Location
      Southend, Essex
      Posts
      4,337
      Likes
      14
      installing mingw will give you a windows specific version of all the GCC compilers and utilities

      Your native GCC would be

      Code:
      gcc -o c-prog c-prog.c
      g++ -o cpp-prog cpp-prog.cpp
      and for Win32 cross-compiling
      I forget what the naming convention is exactly, but it's something like

      Code:
      mingw-gcc-win32 -o c-prog c-prog.c
      mingw-g++-win32 -o cpp-prog cpp-prog.cpp
      If you use windows specific things
      (like using native windows threads, instead of using posix threads)
      you will also need the mingw runtime
      this is just a small DLL

      If you code windows specific things into your code, any compiled code will depend (and be dynamically linked to) the runtime

      but to be honest, everyone uses pthreads anyways....
      (\_ _/)
      (='.'=)
      (")_(")

    5. #5
      Banned
      Join Date
      Apr 2007
      Location
      Out Chasing Rabbits
      Posts
      15,193
      Likes
      935
      I use pthreads.

      Ugh, I wonder if there is a way to do it through the GUI. I'm writing a program that's currently over 100 files and gonna get much bigger.

    6. #6
      FBI agent Ynot's Avatar
      Join Date
      Oct 2005
      Gender
      Location
      Southend, Essex
      Posts
      4,337
      Likes
      14
      yep,
      any good IDE will be able to use the cross-compiler
      and most will automatically detect if you have one installed

      in any case, it's just a matter declaring the right executables to make
      instead of
      Code:
      CC=gcc
      CXX=g++
      it's
      Code:
      CC=mingw-gcc-win32
      CXX=mingw-g++-win32
      (\_ _/)
      (='.'=)
      (")_(")

    7. #7
      Banned
      Join Date
      Apr 2007
      Location
      Out Chasing Rabbits
      Posts
      15,193
      Likes
      935
      Beautiful, I would prefer to write a parser in C since it's faster.

    Bookmarks

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •