Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: BC9 Basic (from jcfuller)

  1. #1
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    BC9 Basic (from jcfuller)

    James C. Fuller (thinBasic forum member jcfuller) is the developer of BC9 project, a spin off of BCX project.

    BC9 is a source code basic to c translator.
    Recently James has found an house for his project. You can find here: http://bc9basic.99k.org/index.html

    You can download BC9 and see if this project can help your development.
    Downloads contains full BC9 source code.
    If I'm not wrong BC9 is developed using BC9 itself, translated into cpp and compiled with MinGW gcc/g++

    Thanks a lot James for this project.

    Just in case someone is interested into BC9 project, I've created thin forum area where to place posts about BC9:

    Ciao
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  2. #2
    Eros,
    Thank you for your support. Yes you are correct bc9 is developed using bc9.

    James

  3. #3
    bc9Basic has been updated to ver 9.1.6.4
    http://bc9.bcxbasic.com/
    See the October 03 News item

    James


  4. #4
    New bc9Basic release.
    This is just the translator.
    You will also need the latest bc9Adp2 package if you don't have it.
    Update your bc9Adp2 package with the new translator.


    added Pelle's C Forum Moderator frankie's changes to replace the Variadic Macros in the CreateArr function.
    These changes were made to allow for DYNAMIC arrays in a 64 bit compiled program and for
    dependent functions such as REDIM and DSPLIT to function as expected in a 64 bit compiled
    program.


    https://sourceforge.net/projects/bc9...1.zip/download


    James

  5. #5

    Can BC9Basic convert PowerBasic source codes to c++ ?

    Hi James

    I would like to get more resources and knowledge about BC9Basic . Where can we get it? as you have stated
    that the website bcxbasic.com has already lapsed, there is no other resource that we could find more stuff
    on this BC9Basic

    Also can BC9Basic convert PowerBasic source codes to c++ ?

    We need a 64bit compiler which PowerBasic do not have (as of now) so the only way is to
    translate it to c++

    After this translation, what would be the best c++ compiler can we use to compile the resultant c++ code ?

    Thanks

    Anne

  6. #6

  7. #7
    Member
    Join Date
    Aug 2015
    Location
    Keralam, India
    Posts
    121
    Rep Power
    21
    @Eros,
    You said --->
    If I'm not wrong BC9 is developed using BC9 itself, translated into cpp and compiled with MinGW gcc/g++
    <-----

    I have a doubt. Forgive me if it is a silly one. How did one can create something with that thing ?. If BC9 is not created yet, then how can i use it to create itself ?

  8. #8
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10
    The very first version of the translator from Basic to C can be created with any language.
    Once your translator add all needed minimum functionality to your BASIC language (especially string handling and file handling, ...), you can use your BASIC language to recreate the first translator in BASIC language and convert to C.
    From that point you will use your BASIC language as translate to C even to maintain your translator.
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  9. #9
    A bit late to the party but....

    It is a three part translate/compile process.
    It can get tricky adding new features with chicken/egg syndrome.
    This three step compile process is necessary to ensure that any changes in the internal runtime code are fully incorporated. If there are errors in that runtime code that affect the translator, they will not show until the third compile.


    For the first compile you need to use an older version.
    For now I use version 9.1.3.1 for the first translation
    Translate/compile
    You now have a new bc9.exe
    You then translate compile with the new bc9.exe
    And Repeat once again.


    James

  10. #10
    Member
    Join Date
    Aug 2015
    Location
    Keralam, India
    Posts
    121
    Rep Power
    21
    @jcfuller,
    Thanks for the info. With lot of interest, i tried to translate an example code in bc9. It was partially succeeded. It translate basic code to C but it can't compile c code to an exe. I am using TDM-GCC-32 compiler. This is my MingW Path =C:\TDM-GCC-32\bin
    This is BCEdit's output shows.
    ==============================================
    :\bc9Adp2\bc9 -ne "Alert.bas"
    bc9Basic: BASIC to C/C++ Translator
    bc9Basic Version 9.2.3.5 (2015/09/2
    [Lines In: 50] [Lines Out: 307] [Statements: 43] [Time: 0.06 sec's]
    bc9Basic translated "Alert.bas" to "Alert.c" For a C Compiler
    Shelling to ASTYLE.EXE
    Formatted E:\2014 Softwares\BC9 - Code Translator\bc9Adp2_9235_1007\bc9Adp2\examples\Gui_Demos\Alert\Alert.c
    InsertOptArg Ver 1.04 an Optional Parameter fixup for the gcc Compiler
    Compiling "Alert.c" to a 32bit "Windows Gui App" Using the TDM-GCC Distro
    Alert.c:32:46: fatal error: urlmon.h: No such file or directory
    compilation terminated.
    Finished!
    Shelling Out To: TDMGCC.BAT "Alert" -m32 gui

    Make done
    ==========================================
    I then copied urlmon.h to project folder. Then it shows to other files are missing. msxml.h and winapifamily.h. I copied those two files and run again. Then it shows a hundreds of errors like type is not declared bla bla bla.
    Now C file is ok. What to do for this problem ?
    Last edited by kcvinu; 08-11-2016 at 20:29.

Page 1 of 2 12 LastLast

Similar Threads

  1. Basic-256 or ( Kids Basic )
    By zak in forum Development
    Replies: 2
    Last Post: 21-01-2011, 20:19
  2. Emergence Basic SKD
    By kryton9 in forum Other languages SDK development
    Replies: 6
    Last Post: 24-03-2009, 18:50
  3. Quite basic
    By Michael Clease in forum Other languages
    Replies: 0
    Last Post: 02-03-2009, 22:55
  4. Cheesecacke Basic
    By zlatkoAB in forum Power Basic
    Replies: 7
    Last Post: 19-06-2008, 23:27
  5. FNX Basic
    By zlatkoAB in forum Other languages
    Replies: 0
    Last Post: 16-04-2008, 13:24

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

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