1. Translator for WIN32 using LccWin

I've posted a new version of the Euphoria To C Translator.
This one works with the free LccWin C compiler for 32-bit Windows.
I've used it successfully to translate/compile numerous
Win32Lib-based Euphoria programs.

You can get the free PD version from:

http://www.rapideuphoria.com/v20.htm#translator

The Complete Edition version is also now available
for registered users of the translator.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » topic index » view message » categorize

2. Re: Translator for WIN32 using LccWin

I've misplaced the location for the full translators for registered users -
could you please resend the address to me?  Thanks.

Steve Adams
Dublin, OH  43017
adamss at ascinet.com

----- Original Message -----
From: "Robert Craig" <rds at ATTCANADA.NET>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Thursday, October 26, 2000 4:14 PM
Subject: Translator for WIN32 using LccWin


> I've posted a new version of the Euphoria To C Translator.
> This one works with the free LccWin C compiler for 32-bit Windows.
> I've used it successfully to translate/compile numerous
> Win32Lib-based Euphoria programs.
>
> You can get the free PD version from:
>
> http://www.rapideuphoria.com/v20.htm#translator
>
> The Complete Edition version is also now available
> for registered users of the translator.
>
> Regards,
>    Rob Craig
>    Rapid Deployment Software
>    http://www.RapidEuphoria.com
>

new topic     » goto parent     » topic index » view message » categorize

3. Re: Translator for WIN32 using LccWin

http://www.rapideuphoria.com/v20.htm#translator

this what you want?


----- Original Message -----
From: "Steve Adams" <sadams3 at COLUMBUS.RR.COM>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Thursday, October 26, 2000 5:51 PM
Subject: Re: Translator for WIN32 using LccWin


> I've misplaced the location for the full translators for registered
users -
> could you please resend the address to me?  Thanks.
>
> Steve Adams
> Dublin, OH  43017
> adamss at ascinet.com
>
> ----- Original Message -----
> From: "Robert Craig" <rds at ATTCANADA.NET>
> To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
> Sent: Thursday, October 26, 2000 4:14 PM
> Subject: Translator for WIN32 using LccWin
>
>
> > I've posted a new version of the Euphoria To C Translator.
> > This one works with the free LccWin C compiler for 32-bit Windows.
> > I've used it successfully to translate/compile numerous
> > Win32Lib-based Euphoria programs.
> >
> > You can get the free PD version from:
> >
> > http://www.rapideuphoria.com/v20.htm#translator
> >
> > The Complete Edition version is also now available
> > for registered users of the translator.
> >
> > Regards,
> >    Rob Craig
> >    Rapid Deployment Software
> >    http://www.RapidEuphoria.com
> >
>

new topic     » goto parent     » topic index » view message » categorize

4. Re: Translator for WIN32 using LccWin

dis-regard

PD -edition........SORRY

----- Original Message -----
From: "Euman" <euman at BELLSOUTH.NET>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Thursday, October 26, 2000 7:14 PM
Subject: Re: Translator for WIN32 using LccWin


> http://www.rapideuphoria.com/v20.htm#translator
>
> this what you want?
>
>
> ----- Original Message -----
> From: "Steve Adams" <sadams3 at COLUMBUS.RR.COM>
> To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
> Sent: Thursday, October 26, 2000 5:51 PM
> Subject: Re: Translator for WIN32 using LccWin
>
>
> > I've misplaced the location for the full translators for registered
> users -
> > could you please resend the address to me?  Thanks.
> >
> > Steve Adams
> > Dublin, OH  43017
> > adamss at ascinet.com
> >
> > ----- Original Message -----
> > From: "Robert Craig" <rds at ATTCANADA.NET>
> > To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
> > Sent: Thursday, October 26, 2000 4:14 PM
> > Subject: Translator for WIN32 using LccWin
> >
> >
> > > I've posted a new version of the Euphoria To C Translator.
> > > This one works with the free LccWin C compiler for 32-bit Windows.
> > > I've used it successfully to translate/compile numerous
> > > Win32Lib-based Euphoria programs.
> > >
> > > You can get the free PD version from:
> > >
> > > http://www.rapideuphoria.com/v20.htm#translator
> > >
> > > The Complete Edition version is also now available
> > > for registered users of the translator.
> > >
> > > Regards,
> > >    Rob Craig
> > >    Rapid Deployment Software
> > >    http://www.RapidEuphoria.com
> > >
> >
>

new topic     » goto parent     » topic index » view message » categorize

5. Re: Translator for WIN32 using LccWin

The translator looks excellent!

I have translated a couple of simple Win32lib programs and UPX'd then
and the file sizes went from around 600-700KB (including all includes)
to about 100KB.

Well UPX was the tool that compressed the file size but the translator
was the tool that created the C source that produced one exe file.

Now my questions:

1.  How can I modify the C files to add a custome icon to the resulting
exe?

(I assume a resource file will need to be created and the linkage options
would need to be modified?? Does anyone know how to do this?)


2.  Will a Mingw version of the translator be produced?
The reason I ask is that Lcc is a C only compiler, not C++.
At some time in the future having C++ support in the resulting
translated code might be handy.  (ie. for linking with C++ libraries).

I imagine Watcom C++ will probably be available before this really becomes
an issue though.

Regards,

Ray Smith




>I've posted a new version of the Euphoria To C Translator.
>This one works with the free LccWin C compiler for 32-bit Windows.
>I've used it successfully to translate/compile numerous
>Win32Lib-based Euphoria programs.
>
>You can get the free PD version from:
>
>http://www.rapideuphoria.com/v20.htm#translator
>
>The Complete Edition version is also now available
>for registered users of the translator.
>
>Regards,
>   Rob Craig
>   Rapid Deployment Software
>   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view message » categorize

6. Re: Translator for WIN32 using LccWin

Ray Smith writes:
> 1.  How can I modify the C files to add a custome icon
> to the resulting exe?

You'll have to look at the LccWin docs for this.

> 2.  Will a Mingw version of the translator be produced?
> The reason I ask is that Lcc is a C only compiler, not C++.

I'll try the free Borland C++ 5.5 for Windows next.
I expect it will produce faster code than LccWin.
After that, I'll polish and finish what I've done so far, and add
optimizations to improve the generated C code on all
platforms. Then it's back to namespace and other language features.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view message » categorize

7. Re: Translator for WIN32 using LccWin

just some small tips to those of you that use the Lcc-translator:
* Compile with the -O option.
* Link with the -s option (unless you need the exe to be debugable).
* Lcc complained about CLK_TCK no being defined (maybe I've got an    old
version). If you get this message, put the following in time.h:
   #define CLK_TCK 1000

Overall, Lcc is my favourite compiler for compiling Euphoria programs.
Watcom is slow and Gcc crashed when I tried to compile a huge main_.c.
Lcc is super-fast compared to both of the above and it produces (relatively)
small exe:s. Rob said something about Lcc producing slow code. Maybe, but I
still think it kicks Watcom's butt..
Btw, I suspect that a MSVC version of ecw.lib could be done with a simple
re-compilation (?). I'm not a very big fan of MSVC, but other might like
having support for it.


_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at
http://profiles.msn.com.

new topic     » goto parent     » topic index » view message » categorize

8. Re: Translator for WIN32 using LccWin

Mic writes:
> * Link with the -s option (unless you need the exe to be debugable).

Thanks. I'll add that to the generated batch file (emake.bat).
It reduces, for example, a 394K Win32Lib program (pretender demo)
down to 326K.

> Btw, I suspect that a MSVC version of ecw.lib could be done
> with a simple re-compilation (?). I'm not a very big fan of MSVC,
> but other might like having support for it.

I'll consider it. Thanks.
I should have a Borland 5.5 version working soon.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view message » categorize

9. Re: Translator for WIN32 using LccWin

>* Compile with the -O option.
>* Lcc complained about CLK_TCK

Robert already takes care of this if you do the following first--
set djgpp=
set watcom=
set lcc=anything
--Robert, If you're watching we'd rather use a command line switch to select
compilers and leave the environment variables alone.

>* Link with the -s option.

If you are compressing with upx, this makes no difference.  If not, it helps
a lot.

new topic     » goto parent     » topic index » view message » categorize

10. Re: Translator for WIN32 using LccWin

> From: Robert Craig

> I've posted a new version of the Euphoria To C Translator.
> This one works with the free LccWin C compiler for 32-bit Windows.
> I've used it successfully to translate/compile numerous
> Win32Lib-based Euphoria programs.

I finally had a chance to try out the translator with LCC (I got LCC from
the U. of Va site), and I'm having a problem with main_.c.  The problem is
with the following statement:

argv = make_arg_cv(szCmdLine, &argc);

LCC gives the error:
"Error main_.c: 26  operands of = have illegal types `pointer to pointer to
char' and `int'"

argv is declared as 'char **argv'

I tried compiling with MSVC6 (to see if it gave the same error), and it told
me:

warning C4013: 'make_arg_cv' undefined; assuming extern returning int
error C2100: illegal indirection
warning C4047: '=' : 'int *' differs in levels of indirection from 'int '

I tried with a couple of different Eu programs, with the same result (this
looks like the standard WinMain() startup code for the translator).  Has
anyone else had this problem?

Matt Lewis

new topic     » goto parent     » topic index » view message » categorize

11. Re: Translator for WIN32 using LccWin

Yes, I too recieved the same error and submitted
to Robert

he told me to put euphoria.h into \euphoria\library
not only did I do his but I changed a few other things
as well.

I use wedit.exe instead of letting emake.bat do the
compilation I also copied ecw.lib into \lcc\lib
and that particular problem disappeared...

euman at bellsouth.net

----- Original Message -----
From: "Matthew Lewis" <MatthewL at KAPCOUSA.COM>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Monday, October 30, 2000 6:06 PM
Subject: Re: Translator for WIN32 using LccWin


> > From: Robert Craig
>
> > I've posted a new version of the Euphoria To C Translator.
> > This one works with the free LccWin C compiler for 32-bit Windows.
> > I've used it successfully to translate/compile numerous
> > Win32Lib-based Euphoria programs.
>
> I finally had a chance to try out the translator with LCC (I got LCC from
> the U. of Va site), and I'm having a problem with main_.c.  The problem is
> with the following statement:
>
> argv = make_arg_cv(szCmdLine, &argc);
>
> LCC gives the error:
> "Error main_.c: 26  operands of = have illegal types `pointer to pointer
to
> char' and `int'"
>
> argv is declared as 'char **argv'
>
> I tried compiling with MSVC6 (to see if it gave the same error), and it
told
> me:
>
> warning C4013: 'make_arg_cv' undefined; assuming extern returning int
> error C2100: illegal indirection
> warning C4047: '=' : 'int *' differs in levels of indirection from 'int '
>
> I tried with a couple of different Eu programs, with the same result (this
> looks like the standard WinMain() startup code for the translator).  Has
> anyone else had this problem?
>
> Matt Lewis
>

new topic     » goto parent     » topic index » view message » categorize

12. Re: Translator for WIN32 using LccWin

mistake:
copy euphoria.h into \euphoria\include
instead of library
SORRY.


----- Original Message -----
From: "Matthew Lewis" <MatthewL at KAPCOUSA.COM>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Monday, October 30, 2000 6:06 PM
Subject: Re: Translator for WIN32 using LccWin


> > From: Robert Craig
>
> > I've posted a new version of the Euphoria To C Translator.
> > This one works with the free LccWin C compiler for 32-bit Windows.
> > I've used it successfully to translate/compile numerous
> > Win32Lib-based Euphoria programs.
>
> I finally had a chance to try out the translator with LCC (I got LCC from
> the U. of Va site), and I'm having a problem with main_.c.  The problem is
> with the following statement:
>
> argv = make_arg_cv(szCmdLine, &argc);
>
> LCC gives the error:
> "Error main_.c: 26  operands of = have illegal types `pointer to pointer
to
> char' and `int'"
>
> argv is declared as 'char **argv'
>
> I tried compiling with MSVC6 (to see if it gave the same error), and it
told
> me:
>
> warning C4013: 'make_arg_cv' undefined; assuming extern returning int
> error C2100: illegal indirection
> warning C4047: '=' : 'int *' differs in levels of indirection from 'int '
>
> I tried with a couple of different Eu programs, with the same result (this
> looks like the standard WinMain() startup code for the translator).  Has
> anyone else had this problem?
>
> Matt Lewis
>

new topic     » goto parent     » topic index » view message » categorize

13. Re: Translator for WIN32 using LccWin

> From: Euman

> Yes, I too recieved the same error and submitted
> to Robert he told me to put euphoria.h into \euphoria\library
> not only did I do his but I changed a few other things
> as well.

Oops.  I had an old version of euphoria.h.  However, now I'm noticing that
many win32lib (v0.53) programs are crashing on me as soon as the delay is
over (eg, rebar.exw crashed, but richedit.exw and listtreeview.exw ran
fine).

Matt

new topic     » goto parent     » topic index » view message » categorize

14. Re: Translator for WIN32 using LccWin

>
>Oops.  I had an old version of euphoria.h.  However, now I'm noticing that
>many win32lib (v0.53) programs are crashing on me as soon as the delay is
>over (eg, rebar.exw crashed, but richedit.exw and listtreeview.exw ran
>fine).
>
>Matt
>

What "delay" is that , Matt? I can't help track these down as I don't have
LccWin. I'm hanging out for the Borland compiler support. Win32lib version
0.54 has more robust memory management so maybe that's an answer.

-----
cheers,
Derek Parnell

new topic     » goto parent     » topic index » view message » categorize

15. Re: Translator for WIN32 using LccWin

The program I used as an example to show you
the problem I was haveing with Combobox and the
<tab stop> does the very same thing after the timeout
I havent figured that one out..

I did send the info that windows gave me about
user32.dll crashing to Robert....

I think it has alot to do with win32lib

I have sent Robert a check for the registered ver
of the translator and as soon as I get it, I should be
able to pin-point the exact area that's causeing the
problem.

euman at bellsouth.net

----- Original Message -----
From: "Matthew Lewis" <MatthewL at KAPCOUSA.COM>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Monday, October 30, 2000 7:09 PM
Subject: Re: Translator for WIN32 using LccWin


> > From: Euman
>
> > Yes, I too recieved the same error and submitted
> > to Robert he told me to put euphoria.h into \euphoria\library
> > not only did I do his but I changed a few other things
> > as well.
>
> Oops.  I had an old version of euphoria.h.  However, now I'm noticing that
> many win32lib (v0.53) programs are crashing on me as soon as the delay is
> over (eg, rebar.exw crashed, but richedit.exw and listtreeview.exw ran
> fine).
>
> Matt
>

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu