Menu

Run GCB within Wine on Mac OS X

mkstevo
2016-06-08
2016-06-22
  • mkstevo

    mkstevo - 2016-06-08

    Hello.
    I've had a good week and been given an iMac to replace my (old) Windows XP machine at work. I've installed a copy of VirtualBox with a Windows XP Guest on it allowing me to run GCB 'normally' but if possible I'd like not to need to do this.

    With that in mind, I've been trying to install GCB into a WineSkin. I have managed to get my WineSkin loaded with a copy of the GCB IDE and compilers. There are two issues that are causing me slight annoyances. The first is that on exiting GCB using either the File/Exit command, or closing the GCB Wine window the current session isn't saved and on restarting an empty file is shown [I could live with this for the convenience of not requiring to start VirtualBox]. If I use the menu command to save the current session, that session is reloaded at start up, with any files opened as they were when they were saved. The second issue is that the time taken to compile the file is really slooowww... A file that on a (slow) PC takes a few seconds, takes well over a minute.

    Compile time in VirtualBox:

    21:27:41    G+Stool-COMPILE/ASSEMBLE,  processing    C:\GCB@Syn\G+Stools\makeHEX.bat
    Source-File  =  D:\16f1829_024.gcb
    Target-File  =  D:\16f1829_024.hex
     11.2  Sec.    Compiler Version: 0.95 2016-02-24   Program Memory: 3198/8192 words (39.04%)   RAM: 80/1024 bytes (7.81%)   Chip: 16F1829
    

    The file paths are actually the same, I have mapped my 'Users\mkstevo\' folder to drive D: in VirtualBox.

    Compile time in Wine:

    20:42:12    G+Stool-COMPILE/ASSEMBLE,  processing    C:\GCB@Syn\G+Stools\makeHEX.bat
    Source-File  =  Z:\Users\mkstevo\16f1829_024.gcb
    Target-File  =  Z:\Users\mkstevo\16f1829_024.hex
     70.8  Sec.    Compiler Version: 0.95 2016-02-24   Program Memory: 3198/8192 words (39.04%)   RAM: 80/1024 bytes (7.81%)   Chip: 16F1829
    

    Has anyone tried running GCB and SynWrite under Wine that might be able to offer some guidance as to where I might be going wrong?

     
  • William Roth

    William Roth - 2016-06-09

    The compiler seems to use as may CPU resources as it can get. I know almost nothing about WINE but I am guessing there is a way to allocate more resources to Wine. Maybe an OSx/MAC expert will show up and have an answer for you.

    The good news is that in the next release of GCB, changes to the compiler allow it to compile about 4 times faster than the current version.

     

    Last edit: William Roth 2016-06-09
  • Keith

    Keith - 2016-06-09

    I know lots about WINE ! - Drink it - Get Drunk - what more is there to know??

     
  • mkstevo

    mkstevo - 2016-06-09

    Thanks to William and Keith. I'll be patient and wait for the release of the new compiler.

    As I'll still need a copy of VirtualBox to 'run' my GQ-4X programmer, I don't suppose it will be any great loss if I can't get WINE to work any quicker. Though I could take Keith's approach, then I won't be as worried about it would I?

     
  • mkstevo

    mkstevo - 2016-06-22

    I've just tried the 0.95.006 release and, as promised, it is quicker. The same file now takes 45 seconds to compile. A big improvement. This makes CGB much more useable under WINE. Many thanks.

     
  • Anobium

    Anobium - 2016-06-22

    0.95.007 when release will be even faster!

     
  • mkstevo

    mkstevo - 2016-06-22

    Looking forward to that then. Thanks.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.