C to FB Cross reference

New to FreeBASIC? Post your questions here.
Post Reply
bfuller
Posts: 362
Joined: Jun 02, 2007 12:35
Location: Sydney, Australia

C to FB Cross reference

Post by bfuller »

I found this https://www.freebasic.net/wiki/TblComparisonC buried in a forum post by MrSwiss.

Along with my other little toy I found called Flowgorithm, very handy for beginners like me (well, I'm not really a beginner, but certainly "beginner" level) trying to make sense of the wealth of C code out there and attempting achieve a similar result in FreeBasic.
caseih
Posts: 2157
Joined: Feb 26, 2007 5:32

Re: C to FB Cross reference

Post by caseih »

Yes, pure C is pretty easy to translate to FB. It's nearly 1:1 equivalent. However knowing that doesn't always help because most C code heavily uses macros and defines, which are a lot more tricky to figure out as many of them are defined by the compiler itself based on the platform and environment it runs on. And many C programs use dozens of header files with lots of inter-dependencies. Even with automated translation tools it can be tricky.
Post Reply