DSPRelated.com
Forums

any software to translate C code to assembly code?

Started by AIplus May 14, 2005
Hi,

Is there any useful software to translate C code to assembly code?

It would be better if it is suitable for Motorola DSP 56002.

Thanks!

AIplus wrote:
> Hi, > > Is there any useful software to translate C code to assembly code? > > It would be better if it is suitable for Motorola DSP 56002. > > Thanks! >
They're called compilers. It's a fairly new technology -- they've only been around since the 1950's. ------------------------------------------- Tim Wescott Wescott Design Services http://www.wescottdesign.com
in article 118darkaqiu6g29@corp.supernews.com, Tim Wescott at
tim@seemywebsite.com wrote on 05/14/2005 21:52:

> AIplus wrote: >> >> Is there any useful software to translate C code to assembly code? >> >> It would be better if it is suitable for Motorola DSP 56002. >> > They're called compilers. It's a fairly new technology -- they've only > been around since the 1950's.
probably the specific compiler he would need would be the Tasking one if the target is DSP56K. (i didn't realize there were too many DSP56002 targets in continuing development anymore and i consider myself a sorta dinosaur.) Alplus, unless the issues are scaling the algorithm to work in fixed-point (and i can't directly see how a C compiler will make that easier for you), it really isn't that hard to code your algorithm in 56K assembly. i consider it still the easiest DSP assembly instruction set programming model around. not the largest or most powerful, just the easiest, conceptually. i know there are SHArC and TI partisans that may disagree. it might be cheaper to hire someone to code whatever it is you want coded than to buy a Tasking C compiler for the 56K. maybe there's a pre-owned one out there somewhere. -- r b-j rbj@audioimagination.com "Imagination is more important than knowledge."
Tim Wescott wrote:
> AIplus wrote: > >> Hi, >> >> Is there any useful software to translate C code to assembly code? >> >> It would be better if it is suitable for Motorola DSP 56002. >> >> Thanks! >> > They're called compilers. It's a fairly new technology -- they've only > been around since the 1950's.
Actually, C compilers came a bit later. At one time, when programs were loaded from the front panel by flipping switches one per bit -- someone developed an "automatic program generator". It's what we now call an assembler. Macro and linking assemblers came later. Jerry -- Engineering is the art of making what you want from things you can get. �����������������������������������������������������������������������
Jerry Avins wrote:

(someone wrote)

>> They're called compilers. It's a fairly new technology -- they've >> only been around since the 1950's.
> Actually, C compilers came a bit later. At one time, when programs were > loaded from the front panel by flipping switches one per bit -- someone > developed an "automatic program generator". It's what we now call an > assembler. Macro and linking assemblers came later.
The technology is almost 50 years old. I have a copy of the 704 Fortran manual dated October 15th, 1956. I don't know that it is the first edition. -- glen
Jerry Avins wrote:
> Tim Wescott wrote: > >> AIplus wrote: >> >>> Hi, >>> >>> Is there any useful software to translate C code to assembly code? >>> >>> It would be better if it is suitable for Motorola DSP 56002. >>> >>> Thanks! >>> >> They're called compilers. It's a fairly new technology -- they've >> only been around since the 1950's. > > > Actually, C compilers came a bit later. At one time, when programs were > loaded from the front panel by flipping switches one per bit -- someone > developed an "automatic program generator". It's what we now call an > assembler. Macro and linking assemblers came later. > > Jerry
Tim said compilers, not specifically C ones. Fortran and Cobol compilers were already maturing in the late 50s. C compilers only came later because C was developed in the early 70s. It was developed from things like Algol and BCPL. Algol compilers existed around 1960 (hence the Algol60 spec.) and by 1968 were huge monsters (ever worked with Algol68?). Regards, Steve
glen herrmannsfeldt wrote:
> Jerry Avins wrote: > > (someone wrote) > >>> They're called compilers. It's a fairly new technology -- they've >>> only been around since the 1950's. > > >> Actually, C compilers came a bit later. At one time, when programs >> were loaded from the front panel by flipping switches one per bit -- >> someone developed an "automatic program generator". It's what we now >> call an assembler. Macro and linking assemblers came later. > > > The technology is almost 50 years old. I have a copy of the 704 Fortran > manual dated October 15th, 1956. I don't know that it is the first > edition.
I could look it up, but I'm lazy. When was C written? Jerry -- Engineering is the art of making what you want from things you can get. �����������������������������������������������������������������������
Jerry Avins <jya@ieee.org> writes:

> glen herrmannsfeldt wrote: > > Jerry Avins wrote: > > (someone wrote) > > > > > >>> They're called compilers. It's a fairly new technology -- they've > >>> only been around since the 1950's. > > > > > >> Actually, C compilers came a bit later. At one time, when programs were loaded from the front panel by flipping switches one per bit -- > >> someone developed an "automatic program generator". It's what we > >> now call an assembler. Macro and linking assemblers came later. > > > The technology is almost 50 years old. I have a copy of the 704 > > Fortran > > > manual dated October 15th, 1956. I don't know that it is the first > > edition. > > > I could look it up, but I'm lazy. When was C written?
I think you're closer to the truth Jerry. Also, Glen, we're talking about "C" here, not Fortran. My second edition of Kernighan and Ritchie's "The C Programming Language" lists the first edition of the book as 1978 and intimates that was when the language was defined. I've heard it said that it was developed in the 70's. I can't give an authoritative answer or reference. -- Randy Yates Sony Ericsson Mobile Communications Research Triangle Park, NC, USA randy.yates@sonyericsson.com, 919-472-1124
Randy Yates <randy.yates@sonyericsson.com> writes:
> [...] > My second edition of Kernighan and Ritchie's "The C Programming Language" > lists the first edition of the book as 1978 and intimates that was when > the language was defined. I've heard it said that it was developed in > the 70's. I can't give an authoritative answer or reference.
This article states it "came into being" in the years 1969-1973. http://cm.bell-labs.com/cm/cs/who/dmr/chist.html -- Randy Yates Sony Ericsson Mobile Communications Research Triangle Park, NC, USA randy.yates@sonyericsson.com, 919-472-1124
Randy Yates wrote:

(snip)

> I think you're closer to the truth Jerry. Also, Glen, we're talking > about "C" here, not Fortran.
The statement was that the technology was 50 years old. The specific implementations weren't, obviously, that old. C is likely much easier to write a parser for than Fortran. -- glen