C/C++ Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingC/C++ Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old February 12th, 2013, 08:43 AM
xyzxyzxy xyzxyzxy is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2013
Posts: 1 xyzxyzxy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 39 sec
Reputation Power: 0
Smile Syntax errors - Error: address of register variable ‘input_data’ requested

Hi,

I am a newbie to C and I have been trying to compile a program of the of the DSP-Kernel: interger scaling FFT.
The following is the main program.

#ifdef __PROF56__
#include <stdio.h>
#endif

#define STORAGE_CLASS register
#define TYPE int

#define N_FFT 16
#define NUMBER_OF_BITS 13 /* fract format 1.NUMBER_OF_BITS = 1.13 */

#define BITS_PER_TWID 13 /* bits per twiddle coefficient */
#define SHIFT BITS_PER_TWID /* fractional shift after each multiplication */

#include "twids16-13.dat" /* precalculated twiddle factors
for an integer 16 point FFT
in format 1.13 => table twidtable[2*(N_FFT-1)] ; */

#include "input16.dat" /* 16 real values as
input data in float format */

#include "convert.c" /* conversion function to 1.NUMBER_OF_BITS format */

#ifdef __PROF56__
volatile extern __time;
volatile int t;
#include "debug.c"
#endif

#include "fft_bit_reduct.c"

void
pin_down(input_data)
TYPE input_data[] ;
{

#ifdef __DEBUG__
pin_down_debug();
#endif

/* conversion from input16.dat to a 1.13 format */

float2fract() ;

{
int *pd, *ps, f;

pd = &input_data[0];
ps = &inputfract[0] ;

for (f = 0; f < N_FFT; f++)
{
*pd++ = *ps++ ; /* fill in with real data */
*pd++ = 0 ; /* imaginary data is equal zero */
}
}
}


TYPE
main()
{
STORAGE_CLASS TYPE input_data[2*N_FFT];

pin_down(&input_data[0]) ;


fft_bit_reduct(&input_data[0]);

#ifdef __DEBUG__
dump_to_file(&input_data[0]);
#endif

return (0) ;

}


On compiling, I get the message
"error: address of register variable ‘input_data’ requested"

Any help will be greatly appreciated.
Thanks in Advance.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingC/C++ Help > Syntax errors - Error: address of register variable ‘input_data’ requested


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

© 2003-2014 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap