Basic to assem. converters

Aug 28, 2004 4 Replies

Can anyone offer their opinion on the merits, if any, of programs which convert PIC basic, or other "easier to learn" languages, to assembler.



Thanks,



Robert


Sure. What you're talking about are "compilers", and we've all been using them for decades. C compilers are probably the most common sort used in embedded applications. Back in the day, Pascal used to be fairly common. You'll also find Ada and Modula-2 in use.

Grant Edwards grante Yow! Are you mentally here at at Pizza Hut?? visi.com

if it has an option to convert original source into comments (and many do), as well as preserving original comments, it would greatly help your efforts. For compilers, check the assembly listing with source, and edit the result.

Most Basic commands could be considered/replaced-by function calls. And often it will make sense to make the function inline.

Most assembler stuff would be better off being C. C is just a high level assembler anyway, and is easier to understand most of the time. So maybe you really need a Basic to C converter?

Sean

I would suggest they have few, if any.

If you're seeking to learn how to programme there are many better ways to do it via a desktop PC.

Mike Harding

This is my first time posting from my home machine instead of one of the machines at Tech. Hope this comes through OK.

Absolutely essential if you need to do such a conversion. I think the question that you are really asking is "What are the merits of easier to learn higher level languages as opposed to assembly?"

The bottom line is that PIC assembly will have the largest user base. This means that there are more folks who know it and can help out.

You've already given one of the best reasons for a higher level language. They are easier to learn because they have less detail.

For PICs I would recommend that you take a look at JAL or XCSB. Both are full featured, compile to efficient code, and have large enough user bases to make them interesting. You can find them on my Cool languages for the PIC here:

formatting link

But I still recommend at least getting your feet wet with assembly.

BAJ

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required