DSPRelated.com
Forums

Magic numbers

Started by Unknown May 14, 2007


      Hi to all,

 

            Does anyone know what TI doc say the meaning of the "magic numbers" that appear at the beginning of the .txt files linked to a project to load or to save data?? You know, I am refering to those four groups of digits in the top.

 

           Thanks for all,

 

     Pablo L.


Coches nuevos, coches de ocasi, coches de Km 0 Si piensas en cambiar de coche, MSN Motor.
__._,_.___







">http://www.dsprelated.com/groups/c6x/1.php



_____________________________________

Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer.  You need to do a "reply all" if you want your answer to be distributed to the entire group.



_____________________________________

About this discussion group:



Archives:  http://www.dsprelated.com/groups/c6x/1.php



To Post:  Send an email to c...



Other DSP Related Groups: http://www.dsprelated.com/groups.php









stime79154188













__,_._,___
Pablo-

> Does anyone know what TI doc say the meaning of the "magic numbers"
> that appear at the beginning of the .txt files linked to a project to load or to
> save data?? You know, I am refering to those four groups of digits in the top.

If data file 'magic numbers' are anything like their counterparts found inside TI
.out files, then these are "signatures" that tell CCS what type of data and what
version of file format. For example, .out file magic numbers tell CCS what version
of COFF format to load.

-Jeff
Pablo,

Generally, the numbers at the begining of the file indicate the format/contents of the file.

For instance, 0xc200 is the lead numbers of the .out files.
They stand for COFF format 2.

R. Williams

---------- Original Message -----------
From: Pablo L. Sordo Martez
To: c...
Sent: Mon, 14 May 2007 16:37:01 +0200
Subject: [c6x] Magic numbers

> Hi to all,
>
> Does anyone know what TI doc say the meaning of the "magic numbers" that appear at the
> beginning of the .txt files linked to a project to load or to save data?? You know, I am
> refering to those four groups of digits in the top.
>
> Thanks for all,
>
> Pablo L.
>
> -----------------------------------
> Coches nuevos, coches de ocasi, coches de Km 0 Si piensas en cambiar de coche, MSN Motor.
>
>
------- End of Original Message -------
Pablo-

> Does anyone know what TI doc say the meaning of the "magic numbers"
> that appear at the beginning of the .txt files linked to a project to load or to
> save data?? You know, I am refering to those four groups of digits in the top.

If data file 'magic numbers' are anything like their counterparts found inside TI
.out files, then these are "signatures" that tell CCS what type of data and what
version of file format. For example, .out file magic numbers tell CCS what version
of COFF format to load.

-Jeff
Pablo,

The 'magic number' term has its roots in ancient UNIX.
The first 2 bytes of a file would identify the format
of the information in that file. Although TI uses
this term, '1651' is the only magic number that I have
seen. If you search for '.dat' in CCS help, you will
find -
"The header information for data files uses the
following syntax:

MagicNumber Format StartingAddress PageNum Length"

mikedunn

--- Pablo L. Sordo Martez
wrote:
---------------------------------

Hi to all,

Does anyone know what TI doc say the
meaning of the "magic numbers" that appear at the
beginning of the .txt files linked to a project to
load or to save data?? You know, I am refering to
those four groups of digits in the top.

Thanks for all,

Pablo L.

---------------------------------
Coches nuevos, coches de ocasi, coches de Km 0 Si
piensas en cambiar de coche, MSN Motor.


             Jeff,


                  This is what I am refering to. These four groups of numbers are from a .dat file of one of my projects:


           1651 1 0 0 0


    Any suggestion now??


            Pablo L.


          




From: Jeff Brower <j...@signalogic.com>
To: Pablo L.Sordo Martez <s...@hotmail.com>
CC: c...
Subject: Re: [c6x] Magic numbers
Date: Mon, 14 May 2007 10:27:24 -0500






Pablo-

> Does anyone know what TI doc say the meaning of the "magic numbers"
> that appear at the beginning of the .txt files linked to a project to load or to
> save data?? You know, I am refering to those four groups of digits in the top.

If data file 'magic numbers' are anything like their counterparts found inside TI
.out files, then these are "signatures" that tell CCS what type of data and what
version of file format. For example, .out file magic numbers tell CCS what version
of COFF format to load.

-Jeff






Recibe ofertas de empleo adaptadas a tu perfil. Introduce tu CV en MSN Empleo.
__._,_.___







">http://www.dsprelated.com/groups/c6x/1.php



_____________________________________

Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer.  You need to do a "reply all" if you want your answer to be distributed to the entire group.



_____________________________________

About this discussion group:



Archives:  http://www.dsprelated.com/groups/c6x/1.php



To Post:  Send an email to c...



Other DSP Related Groups: http://www.dsprelated.com/groups.php









stime79161008













__,_._,___
Pablo-

> This is what I am refering to. These four groups of numbers are
> from a .dat file of one of my projects:
>
> 1651 1 0 0 0
>
> Any suggestion now??

My answer is the same -- it tells CCS something. I don't know what and can't think
of any reason to know. Why do you want to know?

-Jeff
Pablo,

Since you did not look at the help file, I will try to
clarify my response. see below.

--- Mike Dunn wrote:

> Pablo,
>
> The 'magic number' term has its roots in ancient
> UNIX.
> The first 2 bytes of a file would identify the
> format
> of the information in that file. Although TI uses
> this term, '1651' is the only magic number that I
> have
> seen. If you search for '.dat' in CCS help, you
> will
> find -
> "The header information for data files uses the
> following syntax:
>
> MagicNumber Format StartingAddress PageNum Length"
The first number [1651] = MagicNumber
The second number = Format
The third number = StartingAddress
The fourth number = PageNum [0 for c6x]
The fifth number = Length

mikedunn
>
> mikedunn
>
> --- Pablo L. Sordo Martez
> wrote:
> ---------------------------------
>
> Hi to all,
>
> Does anyone know what TI doc say the
> meaning of the "magic numbers" that appear at the
> beginning of the .txt files linked to a project to
> load or to save data?? You know, I am refering to
> those four groups of digits in the top.
>
> Thanks for all,
>
> Pablo L.
>
> ---------------------------------
> Coches nuevos, coches de ocasi, coches de Km 0 Si
> piensas en cambiar de coche, MSN Motor.
>
>



          Thanks Mike,


                    Only a little question. Could you tell me where can I found the different options that these numbers can get?? For example, if I want data in hexadecimal, I have to set a 3 in format (I have just invented this value).


                   Is there an easier way to change the length, format, etc. of the .dat files than setting differente numbers at the top of the file?


           Thanks again,


    Pablo L.






From:  Mike Dunn <m...@sbcglobal.net>
To:  "Pablo L. Sordo Martez" <s...@hotmail.com>, c...
Subject:  Re: [c6x] Magic numbers
Date:  Mon, 14 May 2007 13:14:59 -0700 (PDT)
>Pablo,
>
>Since you did not look at the help file, I will try to
>clarify my response.  see below.
>
>--- Mike Dunn <m...@sbcglobal.net> wrote:
>
> > Pablo,
> >
> > The 'magic number' term has its roots in ancient
> > UNIX.
> >  The first 2 bytes of a file would identify the
> > format
> > of the information in that file.  Although TI uses
> > this term, '1651' is the only magic number that I
> > have
> >
seen.  If you search for '.dat' in CCS help, you
> > will
> > find -
> > "The header information for data files uses the
> > following syntax:
> >
> > MagicNumber  Format StartingAddress PageNum Length"
>The first number [1651] = MagicNumber
>The second number       = Format
>The third number        = StartingAddress
>The fourth number       = PageNum  [0 for c6x]
>The fifth number        = Length
>
>mikedunn
> >
> > mikedunn
> >
> > --- Pablo L. Sordo Martez
> > <s...@hotmail.com> wrote:
> >
> >
> >
---------------------------------
> >
> >       Hi to all,
> >
> >             Does anyone know what TI doc say the
> > meaning of the "magic numbers" that appear at the
> > beginning of the .txt files linked to a project to
> > load or to save data?? You know, I am refering to
> > those four groups of digits in the top.
> >
> >            Thanks for all,
> >
> >      Pablo L.
> >
> >
> >
> > ---------------------------------
> > Coches nuevos, coches de ocasi, coches de Km 0 Si
> > piensas en cambiar de coche, MSN Motor.
> >
>
>
> >
> >
>


Excursiones y escapadas a sitios micos. No te lo pierdas en MSN Entretenimiento
__._,_.___







">http://www.dsprelated.com/groups/c6x/1.php



_____________________________________

Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer.  You need to do a "reply all" if you want your answer to be distributed to the entire group.



_____________________________________

About this discussion group:



Archives:  http://www.dsprelated.com/groups/c6x/1.php



To Post:  Send an email to c...



Other DSP Related Groups: http://www.dsprelated.com/groups.php









stime79180191













__,_._,___
Pablo,

io_format is an integer that represents the format in
which memory words will be written to the specified
output file. The default output is 1 (hexadecimal). It
accepts the following Parameters:

1 *.dat Hexadecimal
2 *.dat Integer
3 *.dat Long
4 *.dat Float

mikedunn

--- Pablo L. Sordo Martez
wrote:
---------------------------------

Thanks Mike,

Only a little question. Could you
tell me where can I found the different options that
these numbers can get?? For example, if I want data in
hexadecimal, I have to set a 3 in format (I have just
invented this value).

Is there an easier way to change
the length, format, etc. of the .dat files than
setting differente numbers at the top of the file?

Thanks again,

Pablo L.

---------------------------------

From: Mike Dunn
To: "Pablo L. Sordo Martez"
, c...
Subject: Re: [c6x] Magic numbers
Date: Mon, 14 May 2007 13:14:59 -0700 (PDT)
>Pablo,
>
>Since you did not look at the help file, I will try
to
>clarify my response. see below.
>
>--- Mike Dunn wrote:
>
> > Pablo,
> >
> > The 'magic number' term has its roots in ancient
> > UNIX.
> > The first 2 bytes of a file would identify the
> > format
> > of the information in that file. Although TI uses
> > this term, '1651' is the only magic number that I
> > have
> > seen. If you search for '.dat' in CCS help, you
> > will
> > find -
> > "The header information for data files uses the
> > following syntax:
> >
> > MagicNumber Format StartingAddress PageNum
Length"
>The first number [1651] = MagicNumber
>The second number = Format
>The third number = StartingAddress
>The fourth number = PageNum [0 for c6x]
>The fifth number = Length
>
>mikedunn
> >
> > mikedunn
> >
> > --- Pablo L. Sordo Martez
> > wrote:
> >
> >
> > ---------------------------------
> >
> > Hi to all,
> >
> > Does anyone know what TI doc say the
> > meaning of the "magic numbers" that appear at the
> > beginning of the .txt files linked to a project to
> > load or to save data?? You know, I am refering to
> > those four groups of digits in the top.
> >
> > Thanks for all,
> >
> > Pablo L.
> >
> >
> >
> > ---------------------------------
> > Coches nuevos, coches de ocasi, coches de Km 0
Si
> > piensas en cambiar de coche, MSN Motor.
> >
> >
> >
>
---------------------------------
Excursiones y escapadas a sitios micos. No te lo
pierdas en MSN Entretenimiento