Array max size

S

suppamax

Good morning everyboby!

I'm writing a program in Systemc, that is a c++ library used for
hardware modeling.

I'm using this array

sc_signal<unsigned int > s[WIDTH];

If WIDTH is bigger than a certain value (I don't exactly know it, but
WIDTH
= 9600 is too big) I got this error

/cygdrive/d/DOCUME~1/GIACOM~1/LOCALS~1/Temp/ccnIC8BQ.s: Assembler
messages:
/cygdrive/d/DOCUME~1/GIACOM~1/LOCALS~1/Temp/ccnIC8BQ.s:54: Warning:
partial
line at end of file ignored
/cygdrive/d/DOCUME~1/GIACOM~1/LOCALS~1/Temp/
ccwcOjjg.o:decodeur_tc1000_butterfly
..cpp:(.text+0x2a): undefined reference to `unsigned int const&
std::min<unsigned int>(unsigned int const&, unsigned int
const&)'
/cygdrive/d/DOCUME~1/GIACOM~1/LOCALS~1/Temp/
ccwcOjjg.o:decodeur_tc1000_butterfly
..cpp:(.text+0x8b): undefined reference to `L6'
.../../systemc-2.1.v1/lib-cygwin//
libsystemc.a(sc_main_main.o):sc_main_main.cpp:(
..text+0xc0): undefined reference to `_sc_main'
collect2: ld returned 1 exit status
make: *** [decodeur_tc1000_butterfly] Error 1

If I use dynamic declaration nothing changes.

I use g++ as compiler.

What's wrong?
Is this a stsyemc problem or a c++ one?


Regards,


Max
 
V

Victor Bazarov

suppamax said:
Good morning everyboby!

I'm writing a program in Systemc, that is a c++ library used for
hardware modeling.

I'm using this array

sc_signal<unsigned int > s[WIDTH];

Assuming 'sc_signal' is a template that has one template argument,
and it's a type template argument, and 'WIDTH' is a compile-time
constant expression, there is nothing wrong with the line above from
the C++ POV.
If WIDTH is bigger than a certain value (I don't exactly know it, but
WIDTH
= 9600 is too big)

....and nothing so far has compelled you to find the exact value after
which you run into the problem? Have you heard of bisections?
I got this error

/cygdrive/d/DOCUME~1/GIACOM~1/LOCALS~1/Temp/ccnIC8BQ.s: Assembler
messages:
/cygdrive/d/DOCUME~1/GIACOM~1/LOCALS~1/Temp/ccnIC8BQ.s:54: Warning:
partial
line at end of file ignored
/cygdrive/d/DOCUME~1/GIACOM~1/LOCALS~1/Temp/
ccwcOjjg.o:decodeur_tc1000_butterfly
.cpp:(.text+0x2a): undefined reference to `unsigned int const&
std::min<unsigned int>(unsigned int const&, unsigned int
const&)'
/cygdrive/d/DOCUME~1/GIACOM~1/LOCALS~1/Temp/
ccwcOjjg.o:decodeur_tc1000_butterfly
.cpp:(.text+0x8b): undefined reference to `L6'
../../systemc-2.1.v1/lib-cygwin//
libsystemc.a(sc_main_main.o):sc_main_main.cpp:(
.text+0xc0): undefined reference to `_sc_main'
collect2: ld returned 1 exit status
make: *** [decodeur_tc1000_butterfly] Error 1

If I use dynamic declaration nothing changes.

What's a "dynamic declaration"?
I use g++ as compiler.


What's wrong?

No idea.
Is this a stsyemc problem or a c++ one?

Impossible to tell without knowing what 'systemc' (and it's not part
of C++ standard library) or seeing any more code. Have you tried
contacting the people from whom you got 'systemc'?

V
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top