Author |
Message |
Topic: malloc |
calvin
Replies: 1
Views: 3431
|
Forum: General CCS C Discussion Posted: Sun May 08, 2011 10:34 pm Subject: malloc |
Hi!!
How can I do in order to know how many bytes can I assign using malloc?
Thanks for your help |
Topic: Int32 comparison problem |
calvin
Replies: 6
Views: 6507
|
Forum: General CCS C Discussion Posted: Fri May 06, 2011 11:54 am Subject: Int32 comparison problem |
Thanks to all for your help. |
Topic: Int32 comparison problem |
calvin
Replies: 6
Views: 6507
|
Forum: General CCS C Discussion Posted: Fri May 06, 2011 7:02 am Subject: Int32 comparison problem |
Thanks FvM I will read about that.But, is fine too that the compile doesnt generate code for some statements? that is not for signed or unsigned data types. |
Topic: Int32 comparison problem |
calvin
Replies: 6
Views: 6507
|
Forum: General CCS C Discussion Posted: Fri May 06, 2011 1:01 am Subject: Another case: |
For more illustration:
if(-2 < -4){
EVENTO(196);
}
if(-2 > -4){
EVENTO(197) ... |
Topic: Int32 comparison problem |
calvin
Replies: 6
Views: 6507
|
Forum: General CCS C Discussion Posted: Fri May 06, 2011 12:43 am Subject: Int32 comparison problem |
Hi!
I have a the following code:
int32 AA,BB;
AA=-4;
if(AA > 0){
// do some thing 1
}
BB=0:
if(AA > BB){
// do some thing 2
}
All ... |
Topic: using/compiling multiple files |
calvin
Replies: 15
Views: 44796
|
Forum: General CCS C Discussion Posted: Wed May 04, 2011 12:34 am Subject: using/compiling multiple files |
Thanks a lot PCM! |
Topic: using/compiling multiple files |
calvin
Replies: 15
Views: 44796
|
Forum: General CCS C Discussion Posted: Tue May 03, 2011 11:01 pm Subject: using/compiling multiple files |
Thanks PCM, do you have some advice about my others situations? and some for "Import error dyn mem mis-match true!=false"?
Thanks |
Topic: using/compiling multiple files |
calvin
Replies: 15
Views: 44796
|
Forum: General CCS C Discussion Posted: Tue May 03, 2011 9:28 pm Subject: using/compiling multiple files |
And... how can I do to locate all the SCRATCH variables generated by the compiler in an specific location?
I can locate the variables declarated in my functions like: int XX; char FF[20], etc. usin ... |
Topic: using/compiling multiple files |
calvin
Replies: 15
Views: 44796
|
Forum: General CCS C Discussion Posted: Tue May 03, 2011 9:09 pm Subject: using/compiling multiple files |
Thanks for your answer.
Yes, the same address.
I'm trying to do the following:
-. My full code is divided in two parts. One part change frequently. The other part never changes. Like a BootLoa ... |
Topic: using/compiling multiple files |
calvin
Replies: 15
Views: 44796
|
Forum: General CCS C Discussion Posted: Tue May 03, 2011 7:07 pm Subject: using/compiling multiple files |
In my case, the "Import error dyn mem mis-match true!=false" is when I use "malloc" in my code. if I comment the line with malloc instruction and comment #include <stdlibm.h> ... |
|