Sign in

username:

password:



Not a member?

Search c55x



Search tips

Subscribe to c55x



c55x by Keywords

AIC23 | C5509 | CCS | CSL | EMIF | EVM | GEL | GPIO | HPI | Interfacing | JTAG | McBSP | OMAP | Omap15 | OMAP59 | RTDX | SDRAM | TMS320VC5509 | USB | XDS5

Sponsor

NEW! TMS320C6474: 3x the performance. 1/3 the cost. Three 1 GHz cores on 1 chip.

Discussion Groups

Discussion Groups | TMS320C55x | Silly Compiler Question (variables not working)

Technical discussions about the TI C55x DSPs (including the c5501, c5502, c5503, c5507, c5509, c5510 and OMAP5910).

  

Post a new Thread

Silly Compiler Question (variables not working) - joe_...@yahoo.com - Sep 21 14:27:30 2006



I decided to write a very simple C program and then upload that to my DSK5510 only to
discover that I could not assign variables; simple assignments such as 

C=0;

did not work.

Any idea why simple variable assignments will not work?   I’m guessing there is something I
need to include or some setting that needs to be adjusted to let the compiler work properly.

Is there anything I can check for further troubleshooting?

Joe



(You need to be a member of c55x -- send a blank email to c55x-subscribe@yahoogroups.com )

Re: Silly Compiler Question (variables not working) - joe_...@yahoo.com - Sep 25 10:54:08 2006

Anyone have something to say?  

I decided to write a very simple C program and then upload that to my DSK5510 only to discover
that I could not assign variables; simple assignments such as 
>
>C=0;
>
>did not work.
>
>Any idea why simple variable assignments will not work?   I’m guessing there is something I
need to include or some setting that needs to be adjusted to let the compiler work properly.
>
>Is there anything I can check for further troubleshooting?
>
>Joe



(You need to be a member of c55x -- send a blank email to c55x-subscribe@yahoogroups.com )

RE: Re: Silly Compiler Question (variables not working) - Gwyn Evans - Sep 26 9:10:49 2006

Hi,

Silly question, silly reply:

Did you do the following?

unsigned int C;

void main (void)
{
  C=3D0;
}

Gwyn Evans
Mobile Video Systems
Drachenseestr 12
81373 M=FCnchen
+4989491689 (Tel)
+491733510658 (Mobile)
+498936105615 (Fax)

-----Original Message-----
From: c...@yahoogroups.com [mailto:c...@yahoogroups.com] On Behalf Of
j...@yahoo.com
Sent: 23 September 2006 06:09
To: c...@yahoogroups.com
Subject: [c55x] Re: Silly Compiler Question (variables not working)

Anyone have something to say?=20=20

I decided to write a very simple C program and then upload that to my
DSK5510 only to discover that I could not assign variables; simple
assignments such as=20
>
>C=3D0;
>
>did not work.
>
>Any idea why simple variable assignments will not work?   I=92m guessing
there is something I need to include or some setting that needs to be
adjusted to let the compiler work properly.
>
>Is there anything I can check for further troubleshooting?
>
>Joe

=20


(You need to be a member of c55x -- send a blank email to c55x-subscribe@yahoogroups.com )

Re: Re: Silly Compiler Question (variables not working) - namana maji - Sep 27 9:29:16 2006

Are you looking the values of the variable in the watch window?
  Sometimes with -o3 level of optimisation, watch window doesnt show the correct values.
  Looking up memory is advisable.
  Hope this helps,
  Namana

j...@yahoo.com wrote:
  Anyone have something to say? 

I decided to write a very simple C program and then upload that to my DSK5510 only to discover
that I could not assign variables; simple assignments such as 
>
>C=0;
>
>did not work.
>
>Any idea why simple variable assignments will not work? I’m guessing there is something I
need to include or some setting that needs to be adjusted to let the compiler work properly.
>
>Is there anything I can check for further troubleshooting?
>
>Joe



(You need to be a member of c55x -- send a blank email to c55x-subscribe@yahoogroups.com )

RE: Re: Silly Compiler Question (variables not working) - Prakash Kamliya - Sep 27 9:31:15 2006

Hi Joe,

=20

I think you do not have code that actually does some work on c variable,
that=92s why compiler might optimizing the code. Try to declare c as volati=
le.
=20

- Prakash=20

=20

  _____=20=20

From: c...@yahoogroups.com [mailto:c...@yahoogroups.com] On Behalf Of Gwyn
Evans
Sent: Tuesday, September 26, 2006 4:03 PM
To: j...@yahoo.com; c...@yahoogroups.com
Subject: RE: [c55x] Re: Silly Compiler Question (variables not working)

=20

Hi,

Silly question, silly reply:

Did you do the following?

unsigned int C;

void main (void)
{
C=3D0;
}

Gwyn Evans
Mobile Video Systems
Drachenseestr 12
81373 M=FCnchen
+4989491689 (Tel)
+491733510658 (Mobile)
+498936105615 (Fax)

-----Original Message-----
From: c55x@yahoogroups. <mailto:c55x%40yahoogroups.com> com
[mailto:c55x@yahoogroups. <mailto:c55x%40yahoogroups.com> com] On Behalf Of
joe_neophyte@ <mailto:joe_neophyte%40yahoo.com> yahoo.com
Sent: 23 September 2006 06:09
To: c55x@yahoogroups. <mailto:c55x%40yahoogroups.com> com
Subject: [c55x] Re: Silly Compiler Question (variables not working)

Anyone have something to say?=20

I decided to write a very simple C program and then upload that to my
DSK5510 only to discover that I could not assign variables; simple
assignments such as=20
>
>C=3D0;
>
>did not work.
>
>Any idea why simple variable assignments will not work? I=92m guessing
there is something I need to include or some setting that needs to be
adjusted to let the compiler work properly.
>
>Is there anything I can check for further troubleshooting?
>
>Joe

=20

=20



(You need to be a member of c55x -- send a blank email to c55x-subscribe@yahoogroups.com )