Author Topic: Started?  (Read 20203 times)

0 Members and 2 Guests are viewing this topic.

Charles Pegge

  • Guest
Re: Started?
« Reply #30 on: October 26, 2012, 05:11:34 PM »
Most of the complexity, converting to C, is around strings and automatic number/string conversions within an expression.

Oxygen currently translates basic expressions to assembly code in two passes. At least one further intermediate pass is required to turn implicit code into explicit c-friendly code before generating assembler.

Typical Basic string expression, requiring break-down for C.

string a,b,c,d
int n
...
a=ltrim(mid(b+c+d,n))


Charles
« Last Edit: October 27, 2012, 01:48:20 AM by Charles Pegge »

Peter

  • Guest
Re: Started?
« Reply #31 on: October 27, 2012, 05:24:36 AM »
It seems that your problems never end, and your time runs away.

Charles Pegge

  • Guest
Re: Started?
« Reply #32 on: October 27, 2012, 06:46:00 AM »
Some problems are interesting, others only cause headaches.

This one, I hope, belongs to the first category, but time is a limitation I agree.

Charles

JRS

  • Guest
Re: Started?
« Reply #33 on: October 27, 2012, 07:27:43 AM »
Charles,

I would hate to see the OxygenBasic project (Basic JIT/embeddable compiler for Windows 32/64) be derailed due to the perceived need for a C emitter.

As I understood the last time I checked the OxygenBasic project status was that you were working on self compiling and 64 bit. You were also allowing C header (.h) file use in O2.

The C thing came up and everything seemed to stop. (just an observation)

John

Aurel

  • Guest
Re: Started?
« Reply #34 on: October 27, 2012, 01:42:13 PM »
Maybe i'm in wrong , but I think that work on C emiter is just a waste of time.
Important (to me) will be remove as possible more bugs or errors and create
really stable product which be capable do things like any other very well basic-like compiler
around.
There is a time for C emiter... ;)

Charles Pegge

  • Guest
Re: Started?
« Reply #35 on: October 27, 2012, 07:01:29 PM »

I've been quietly restructuring Oxygen,to make the back-end more flexible - not just for the C-emitter. It will take me a few more months, but we will end up with an improved compiler.  This process is similar in some respects, to developing 64 bit compilability last year.

Thanks to all your code examples and challenges, testing is much more rigorous on this development cycle.

Charles


Peter

  • Guest
Re: Started?
« Reply #36 on: October 28, 2012, 07:18:29 AM »
Quote
Thanks to all your code examples and challenges.

How many month will it need? I mean, when I have questions, where find I an answer?

Charles Pegge

  • Guest
Re: Started?
« Reply #37 on: October 28, 2012, 07:50:58 PM »

I anticipate late December, Peter. No problem answering well framed questions, but I would prefer to avoid library stuff, or anything which might entail lengthy research. :)

This is a simplified scheme. The new parts being developed are colored Navy Blue:


                                                                                /-->32/64 encoder-->assembler-->linker-->x86 code
Translation-->construct-->expression-->instruction
                                                                                \-->C encoder-->c source code



Charles

Peter

  • Guest
Re: Started?
« Reply #38 on: October 29, 2012, 01:34:42 AM »
Is no long time! Seems not too difficult.
I hold my questions, when I have any, very easy. Only Aurel makes worries me.  :D

I have new Dll stuff, that must be tested under WindowsXp and Vista.
Under Windows7 is anything okay. It only needs still a help tutorial.

Aurel

  • Guest
Re: Started?
« Reply #39 on: October 29, 2012, 11:24:54 AM »
Quote
Only Aurel makes worries me.
Why?.. ;D
Do you can explain?

JRS

  • Guest
Re: Started?
« Reply #40 on: October 29, 2012, 07:32:03 PM »
Is no long time! Seems not too difficult.
I hold my questions, when I have any, very easy. Only Aurel makes worries me.  :D

I have new Dll stuff, that must be tested under WindowsXp and Vista.
Under Windows7 is anything okay. It only needs still a help tutorial.

Peter,

I have learned that if you want anything to get done, (right) you have to do it yourself. I'm trying to generate some interest with the ScriptBasic 2.2 cross platform release and there doesn't seem to be much interest. I think James is seeing the same kind of response with his BCX release. I should be spending my time on the Android side were a hobby project can easily become profitable with little effort. You are a talented guy and should take look at Basic4Android as your next platform to conquer.

John


Peter

  • Guest
Re: Started?
« Reply #41 on: October 30, 2012, 11:38:36 AM »
Hi John,

I learned the same.
Your idea isn't bad, but  unfortunately, there  is no  Android here with me.
What is the challenge?  I master this Basic, and when an Android comes, I'm prepared.

JRS

  • Guest
Re: Started?
« Reply #42 on: October 30, 2012, 03:06:53 PM »
Quote
Your idea isn't bad, but  unfortunately, there  is no  Android here with me.

Sure there is. Windows supports running Android in a VirtualBox (emulator) and Basic4Android is a 32 bit Windows Application. You could do everything on your Windows PC. When you feel that your ready to start developing for Google Play, you should get yourself an Android based tablet to work with.