Compiler options

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
MarkW
Flowcode v5 User
Posts: 118
Joined: Thu Sep 17, 2009 1:30 pm
Has thanked: 3 times
Been thanked: 11 times
Contact:

Compiler options

Post by MarkW »

Hello

Using FC4 with 18F device. Something i noticed which is not in any manual etc is that
even though i have selected 18F device as the processor, the compiler options remain
set as "pic16" type. Should it not be set to "pic18" type? Seems logical that there are
are obvious differences with the two types of compiler, namely org of code, int vectors etc.

Reason i ask is i am getting strange results using fmul float type function. The return
value is not what is expected.
Also in the BoostC manual there is no reference to float data types and functions. I was
thinking of inserting a C icon to use their float functions directly....but alas its like looking
for an easter egg :?

Thanx

Mark

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Compiler options

Post by medelec35 »

Hi Mark,
Steve answered a similar question here:
http://www.matrixmultimedia.com/mmforum ... 97&#p16680


Martin
Martin

MarkW
Flowcode v5 User
Posts: 118
Joined: Thu Sep 17, 2009 1:30 pm
Has thanked: 3 times
Been thanked: 11 times
Contact:

Re: Compiler options

Post by MarkW »

Hi Martin

Thanx for the link for the pic16/18 compiler options....seems like FC is doing this
automatically.

However, i think there is a bug with the float to string function. If the resultant
float calculation is larger than integer, then the float to string result (sent as string
to 232 port), is incorrect.

All my variables using float calcs are correctly defined as float type. The calculation
is getting done, but as soon as the result is greater than +32767, the float to string
goes pear shaped.

Its the last part of my project, and has now let me down :(

Do you know what is the native C float to string syntax for the boostc compiler?
Maybe the FC function version is not good and the native function for boostc
will work. I can use the native command in C icon if only i could find the syntax
for it in the manual. The boostc manual is shall we say "lacking" in info.

Thanx

Mark

Post Reply