Does MinGW Write to Disk?

This is a discussion on Does MinGW Write to Disk? within the Tech Board forums, part of the Community Boards category; Hi I've set MSYS+MinGW on my usb stick so I can have a portable compiler on the go. I was ...

  1. #1
    glo
    glo is offline
    Registered User
    Join Date
    May 2006
    Posts
    169

    Does MinGW Write to Disk?

    Hi

    I've set MSYS+MinGW on my usb stick so I can have a portable compiler on the go.

    I was wondering though, does MinGW write locally inside its folder? I don't want to shorten my usb stick's life.

    Many thanks!

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    I don't believe it does. I did a quick experiment with setting the \dev-cpp\bin director to read-only, and compile using gcc, and it seems to work fine.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,460
    In any case you can use the TMPDIR environment variable to control where gcc generates temporary files. The default is to do it on the target directory, which I believe is what you will want anyways.
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  4. #4
    glo
    glo is offline
    Registered User
    Join Date
    May 2006
    Posts
    169
    Thank both of you very much!
    I will test whether or not my portable IDE is functional tomorrow at work.

  5. #5
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    Quote Originally Posted by glo View Post
    Hi

    I've set MSYS+MinGW on my usb stick so I can have a portable compiler on the go.

    I was wondering though, does MinGW write locally inside its folder? I don't want to shorten my usb stick's life.

    Many thanks!
    I dont worry about usb drives and write backs - they are pretty cheap these days. I picked up an 8GB drive for under £20 the other day!

  6. #6
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    I use a stick drive for my most super duper secret hush hush stuff because I can lock it in the vault at days end. I dont really worry about the life of the stick, since an 8GB stick will give you millions of builds for pretty much the largest project for which you are likely to have sole physical control of the source. The sticks usually give you plenty of warning when they are starting to fail, so you can replace the stick at the first sign of trouble.
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  7. #7
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    Not to mention the Kingston ones come with a 5 year warranty

  8. #8
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    Quote Originally Posted by abachler View Post
    I use a stick drive for my most super duper secret hush hush stuff because I can lock it in the vault at days end.
    Buffy the Vampire Slayer fan fiction?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problems with fstream, one variabile for write and read
    By Smjert in forum C++ Programming
    Replies: 3
    Last Post: 02-03-2009, 09:19 PM
  2. Reroute where programs write to
    By willc0de4food in forum C Programming
    Replies: 7
    Last Post: 09-21-2005, 04:48 PM
  3. Replies: 3
    Last Post: 03-04-2005, 01:46 PM
  4. Direct disk access in DOS
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 02-26-2002, 01:52 PM
  5. File Size and File Size on Disk
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 12-15-2001, 07:03 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21