Menu

IDE FOR GCBasic

2008-04-12
2013-05-30
  • Nobody/Anonymous

    Hello Everybody!

    Happy day, There are three (3) IDE for GCBasic and only one of them is open
    source -> BasicIDE (Made in VB). I started using GCBasic with my students on
    BTEC National MicroElectronics Class and some of them find it difficult to
    follow. Not because of GCBasic but the routines of compiling, moving and renaming
    the compile.hex back to/match the source file name. This also lead to creating folders
    for each of the file in order to prevent over-write of the former/previous compile.hex.

    I am also planning to use GCBasic in my GCSE (Foundation) Class with my 16year group(in Two weeks time),
    so I thought of making an IDE - editor based on Scite/Scintilla which will serve as GCBasic IDE and to be bundled
    along with it. This work has started now, but I will need help on the following command line:

    1.) How do I call (cmd) to GCBasic to compile a given filename and use that name when creating the .hex file
    and associated .asm, .err, etc.. files.?

    2.) Tell GCBasic to create those files in the same folder as the source file (i.e. inside the source folder)

    3.) When this is completed how do I upload or forward it to the Administrator or the person in charge?

    Please kindly reply to my questions and I will appreciate every reply, advice, pointers given.

    Thanks and God blesses!!!

    Best regards,
    Sanyaade

     
    • Hugh Considine

      Hugh Considine - 2008-04-13

      If GCBASIC constantly outputting to compiled.hex is a nuisance, you can change it easily enough. Remove the /O: switch from compile.bat, or (if you're using the latest version from update.zip) delete the Output= line from gcbasic.ini. This will make all the output for a file show up in the same folder as the input file, with a similar name.

      1. The command line to call GCBASIC would be something like this:
      "C:\Program Files\GCBASIC\GCBASIC.EXE" /A:GCASM "infile"
      Replace infile with the name of the file that is to be compiled.

      2. GCBASIC will do this automatically if you don't have /O:compiled.asm on the command line, and you've specified the full path for the input file.

      3. You can email it to me and I'll upload it, or you can create a SourceForge.net account and I'll add you to the GCBASIC project so that you can upload it yourself.

      I've made some changes to the way that GCBASIC gets its settings from the command line, and it can now read from a .ini file as well as from the command line. There is an example .ini included with update.zip, or you can look at the part of the InitCompiler sub in gcbasic.bas that is used to read the settings.

       
    • Nobody/Anonymous

      Hi Hugh,

      Very very useful information and brilliant reply.

      I will work on it tomorrow morning when I wake and email you when I finished the
      initial part ready for upload and testing. After that we can then look at adding features
      to it.

      Once again thank you for your prompt feedback.

      God blesses!!!

      My very best regards,
      Sanyaade

       
    • Nobody/Anonymous

      Hi Hugh,

      I tried to email you the files but your email address failed for delivery to w_cholmondeley@users.sourceforge.net
      kindly forward me the address to send them.

      God blesses!!!

      Best regards,
      Sanyaade

       
    • Hugh Considine

      Hugh Considine - 2008-04-17

      That email address should work. It forwards anything to waltercholmondeley at gmail dot com, which should keep a copy, and forward on again to hconsidine at bigpond dot com.

      What is probably happening is that somewhere along the way, an email scanner is seeing the .exe file/s in the email and deciding that it must contain a virus.

      One approach is to put whatever you are sending into a password protected zip file, and include the password in the email. This prevents the mail server from scanning the email, extracting the zip, finding the .exe, having a panic attack and bouncing the email back.

       
    • Nobody/Anonymous

      Hi Hugh,

      I have password and sent the files yet both 1) w_cholmondeley@users.sourceforge.net and 2.)waltercholmondeley@gmail.com failed but the 3.)hconsidine@bigpond.com was okay, so will get them through that channel.

      I am currently working on create Task bars and more features on the ide.

      You can also add me to the GCBasic project list for easy uploading. My sourceforge user name is: sanyaade3.

      Hear from you soon.

      God blesses!!!

      Best regards,
      Sanyaade

       
    • Hugh Considine

      Hugh Considine - 2008-04-18

      Thanks, I got all of your files and the IDE looks good. I've added you as a developer and ticked the box that should allow you to make file releases. It'd be best if you keep your IDE separate from GCBASIC for now, once the next release is finished a combined package can be produced.

      No need to create a fork of FreeBASIC, GCBASIC (and any other parts of it intended for widespread use) compiles fine with the existing version as is.  The chip data file generating program just needs a few minor changes to itself or the compiler to compile, either by altering 3 lines of the FreeBASIC compiler to re-enable implicit declaration or by adding the required Dim commands to the program. It's not meant for everyone to use anyway so it doesn't matter if some special effort is needed to compile and run it.

       
    • Nobody/Anonymous

      Hi Hugh,

      Good day to you and everybody around you. Glad to hear that you have the files now.

      I will keep everything separate and let you decide over it.

      Stay blessed!!!

      Best regards,
      Sanyaade

       

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.