C versus assembly

I googled c versus assembly

For those of us who haven’t learned C yet, and are looking for flow charts to explain example code (me), I found a site that created a freeware program that converts C code into a flowchart:

http://www.ablegold.fsnet.co.uk/easystructure_pad.htm

It doesn’t run on a Mac, so I haven’t tried it yet. Let me know what you guys think.

I found some other sites with better looking stuff, but they want $300 to $500.

Sparky:

I opened your RF-24G sample code in “easystructure”.

Click Tools, Project Options, and check “ignore missing includes”

Then click Tools, Tree Format, and it says line 110: FATAL: token ‘.0’ out of place.

The error listing is in the default window, behind the main window.

Easystructure (freeware) does not show line numbers, so I cheated and downloaded a demo of Code Visual to see what was on line 110.

line 110: while (RX_DR == 0)

Is token 0 out of place?

Might just be a bug in the freeware, since Code Visual and Autoflowchart (ezprog.com) don’t bomb.

problem is that cc5x (the c compiler used to write this code) is not very good when it comes to c standards, it uses much non-standard syntax and so wont pass this sort of software.

What i suggest is that you try and break down the C Code yourself, its not difficult. Post the section u need help with on here and me / others will be able to do it :wink:

pittuck:

You were right. The author got back to me, and in the Project Options menu, he had me write PORTA.0 _EQUAL _portA _END PORTB.0 _EQUAL _portB

Then it bombed on 0b.xxxx.xxxx

I experimented and removed the 0b. and the . between the nibbles, and it works.

So, you can click on one of the subprograms in the tree window, then select Flowchart mode from the Edit menu, and a flowchart pops up. The boxes have the code written inside. The font is small, and looks like “Greeked” text, but it’s ok, since the tree and the original code is next to it.

Now I’ll try to figure out how the wireless link works.