Menu

Code memory usage map and AVR porting

Help
2008-02-17
2013-05-30
  • Deepak Chatwani

    Deepak Chatwani - 2008-02-17

    Hello Hugh Considine,

    Thanks for GCBasic to be an open source compiler.

    How can I check code memory usage or something like code memory statistics ?

    I use GCBIDE and GCBASIC with default settings, assembler is inbuilt GASM. Normally MPASM shows this at bottom of its .lst file.

    Is AVR porting completed ?
    Can I use GCBASIC for AVR chips at this moments ?

    Thanks,
    Regards,

    Deepak Chatwani.

     
    • Nobody/Anonymous

      if you mean something like i posted below, then yes it has a memory map of sorts

      MEMORY USAGE MAP ('X' = Used,  '-' = Unused)

      00000000 : XX--XXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX
      00000040 : XXXXXXXXXXXXXXXX XXXXXXXX-------- ---------------- ----------------
      00002000 : -------X-------- ---------------- ---------------- ----------------

      All other memory blocks unused.

      Program Memory Words Used: 87

      as far as AVR's go, I still think it's a ways off. IIRC a few weeks ago the admin posted about it being ~50% compatible with AVR's or something like that

       
    • Deepak Chatwani

      Deepak Chatwani - 2008-02-18

      Hello,

      Thanks for your reply.

      Yes, I want to know about this memory usage map,

      Where can I find it ?

      I am using GCBIDE, and it uses GASM by default,
      What is command switch for GASM ?

      Where should I need to place it ?
      Regards,

      Deepak Chatwani.

       
    • Deepak Chatwani

      Deepak Chatwani - 2008-02-18

      Hello,

      Sorry for my previous post, I am using GCASM not GASM.

      Regards,

      Deepak Chatwani.

       
    • Nobody/Anonymous

      I just drag-n-drop my gcbide files over compile.bat in the GCbasic folder.
      it should give you 4 files all named compiled but with different file extensions.
      you should get .err, .lst, .asm, .hex

      The memory map i posted is @ the end of the .lst file.

       
    • Hugh Considine

      Hugh Considine - 2008-02-22

      Porting to AVRs isn't yet complete (still), but I've not given up! However, enough should be done for you to try it out. I've not tried GCBASIC on an actual AVR yet, but programs generated by GCBASIC seem to run fine in the AVR Studio simulator.

      Most commands are implemented, so if you've got a bit of spare time please give it a try! As always, any bug reports would be very useful.

      Regarding the memory map, the .lst file is generated by gputils. GCBASIC's assembler (GCASM) doesn't generate this file, but hopefully this can be easily changed.

       

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.