Searching \ for 'CCS- Viewing Variables' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/index.htm?key=ccs+viewing+variables
Search entire site for: 'CCS- Viewing Variables'.

Truncated match.
PICList Thread
'CCS- Viewing Variables'
1999\07\05@191224 by Mike Montalvo

flavicon
face
I was wondering if there is a way to view variables used in my C code in
MPLAB in simulator?  It's a bit of a pain to sit there and search through
the code to find out where the compiler put the variable I want to look at.
I created a simple floating point math function (using CCS's FP math
routines) and wanted to test it in the MPLAB simulator, but I have no way to
see if the answer is correct because I have no way to view it.
Any help would be appreciated.


-----------------------------------------
                Mike Montalvo
         G-FORCE Motorsports
http://www.g-forcemotorsports.com
               516-794-0858

1999\07\05@203218 by Dennis Plunkett

flavicon
face
At 19:09 5/07/99 -0400, you wrote:
>I was wondering if there is a way to view variables used in my C code in
>MPLAB in simulator?  It's a bit of a pain to sit there and search through
>the code to find out where the compiler put the variable I want to look at.
>I created a simple floating point math function (using CCS's FP math
>routines) and wanted to test it in the MPLAB simulator, but I have no way to
>see if the answer is correct because I have no way to view it.
>Any help would be appreciated.
>
>
>-----------------------------------------
>                 Mike Montalvo
>          G-FORCE Motorsports
>http://www.g-forcemotorsports.com
>                516-794-0858
>
>


I am not having a go at you, but I have always been of the addage that if
you need Floating Point, you have not considered the problem. Anyone else
got comments on this?


Dennis

1999\07\05@205301 by John Hansen

picon face
<x-flowed>At 07:09 PM 7/5/99 -0400, you wrote:
>I was wondering if there is a way to view variables used in my C code in
>MPLAB in simulator?  It's a bit of a pain to sit there and search through
>the code to find out where the compiler put the variable I want to look at.


You can use the "watch window" to keep track of the values of C
variables.  Works great.

John Hansen

</x-flowed>

1999\07\06@022040 by Jamil J. Weatherbee

flavicon
face
Yes, it is called time to market, the Floating Point in CCS C has been of
great assistance to myself in prototyping a PID controller to determine
that the device under consideration did in fact not work, in about 2 days
as opposed to weeks of tedious flowcharting and planning to write some
highly efficient very tight assembly code. (and I must say that I am
excellent at authoring efficient PICmicro code -- so yes, even I feel
routinely ripped off by using a C compiler, especially considering how
anything with floating point seems to grow exponentially in size).

But to answer the original question, sorry I don't know.

On Tue, 6 Jul 1999, Dennis Plunkett wrote:

{Quote hidden}

More... (looser matching)
- Last day of these posts
- In 1999 , 2000 only
- Today
- New search...