Search the web
Sign In
New User? Sign Up
Jal_developers
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Patch for jal   Message List  
Reply | Forward Message #1138 of 1239 |
Re: [Jal_developers] Patch for jal



Javier Martinez wrote:

>Hi Marco,
>
>
>
>>Yes, but if someone doesn't need it, he can just ignore it.
>>
>>One possible solution could be to selective enable the preprocessor support
>>when running the "configure" script, if called with an "--enable-cpp" switch.
>>What do you think about this?
>>
>>
>
> Yes, but what about sharing code? These macro functions will make JAL
>"other" language (JAL-cpp vs JAL), that is you'll not able to share code
>with other "not-cpp" jallians. Should be nice to find a solution
>affordable for all, rather than for a few ones.
>
>
>
>
hello Marco, Javi,

As a non-C-programmer, I cann't understand the full extend /
consequences of this C-isch macro implementation,
but here a few remarks:

1. Macro's can never extend or change the real functionality /
performance of the compiler. This would imply that a macro-machine
should always or best be implemented as a pre-processor.

2. As I showed in JALcc, it's very well possible to create a
pre-processor which is capable of perfoming complex macro actions, while
still holding 100% compatibility with "standard JAL", see
http://oase.uci.kun.nl/~mientki/pic/jalcc/help/jalcc_macro.html
<http://oase.uci.kun.nl/%7Emientki/pic/jalcc/help/jalcc_macro.html>
If you look at the block "Inline Macro,IO-pin, about the end of the
first page, you can see how this is implemented.

3. The mentioned page describes only the build in macros in JALcc, I've
build in user definenable macros, but as I'm not satisfied about them,
they are not made public.

4. I'ld love to come together to get a standard definition of macros
(maybe even fully compatible with mchip-macros), which then can be
implemented in different pre-processors.

just my 2-euro-cents

cheers,
Stef




Mon Nov 7, 2005 6:40 pm

aap_beertje
Offline Offline
Send Email Send Email

Forward
Message #1138 of 1239 |
Expand Messages Author Sort by Date

Hi, I've added support to jal for cpp-like preprocessors (cpp, gpp, ...). This essentialy allows to write macros using #define (and correctly handle line...
Marco Pantaleoni
mpanta74
Offline Send Email
Oct 27, 2005
10:45 pm

Hi Marco, Can you post a brief example in JAL? I'll upload changes to jal.sf.net CVS repository. Regards, Javi....
Javier Martinez
japus10
Offline Send Email
Oct 29, 2005
3:35 pm

... Hi Javier, I apologize for the late answer, but I've been out of town. ... of course. The main use of preprocessor support in jal is to write macros, short...
Marco Pantaleoni
mpanta74
Offline Send Email
Nov 3, 2005
3:40 pm

... I've added that switch. Now if you run jal with the "-P" switch, it will invoke cpp for you. Compiling the example of the previous message would become: $...
Marco Pantaleoni
mpanta74
Offline Send Email
Nov 3, 2005
4:45 pm

Hi Marco, Sorry, I've been busy. ;) Just 2 questions. The main one: seems that needs an external C preprocessor, isn't it? This will be useless for 95% of...
Javier Martinez
japus10
Offline Send Email
Nov 7, 2005
4:49 pm

... Yes, but if someone doesn't need it, he can just ignore it. One possible solution could be to selective enable the preprocessor support when running the...
Marco Pantaleoni
mpanta74
Offline Send Email
Nov 7, 2005
4:58 pm

Hi Marco, ... Yes, but what about sharing code? These macro functions will make JAL "other" language (JAL-cpp vs JAL), that is you'll not able to share code ...
Javier Martinez
japus10
Offline Send Email
Nov 7, 2005
5:15 pm

... You are right, it would impede code sharing. I think of this feature as a "sharp knife", to be used exclusively when unavoidable, but I understand that ...
Marco Pantaleoni
mpanta74
Offline Send Email
Nov 7, 2005
5:40 pm

... hello Marco, Javi, As a non-C-programmer, I cann't understand the full extend / consequences of this C-isch macro implementation, but here a few remarks: ...
Stef Mientki
aap_beertje
Offline Send Email
Nov 7, 2005
6:42 pm

... I agree, but while on unix-like systems a pre-processor is (almost) always present, on other systems (windows), it is not. I'm not interested in windows ...
Marco Pantaleoni
mpanta74
Offline Send Email
Nov 7, 2005
11:00 pm

Hi all, ... Marco, you hit in the bulls eye. Ask in the jallist how many of them have a C compiler to build latest JAL sources .... ... and now think that...
Javier Martinez
japus10
Offline Send Email
Nov 8, 2005
4:59 pm

... Yes, I understand. ... This sounds great! Thanks. In the meantime I'll try to come to a more integrated solution. I'll keep you posted. Cheers, Marco -- ...
Marco Pantaleoni
mpanta74
Offline Send Email
Nov 8, 2005
5:20 pm

Hi all, Available patches in jal.sf.net: ID Summary 1352435 10Fxxx support 1352433 Preprocessor support 1118846 JAL 16F648 Extensions Regards, Javi....
Javier Martinez
japus10
Offline Send Email
Nov 9, 2005
6:30 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help