C/C++ compiler for MC68k

Oct 24, 2003 9 Replies

I'm trying to write an elaborate backtracking program to be used by the MC68k microprocessor. Does anybody know where I can find any related info? Thanks!


I don't even know what a "backtracking" programme is?

Mike Harding

an algorithm, construct a solution step by step simplest ex: find all integer numbers xi so that x1+x2+...+xk=n(with k,n inputed by the user) i cannot do this in assembly... thanks!

The GNU C compiler (gcc) can be configured for M68k - works well (see ).

HTH

Tauno Voipio tauno voipio @ iki fi

May I ask what you are looking for here, and why you want to run it on an m68k processor? What are you going to do with these numbers afterwards? Are there limits on the inputs k and n? Do you need the solutions in any particular order? I can't think of hand of any use of this problem, but I don't see why there should be any problems with writing it in assembly instead of C (assuming you are reasonably well-versed in m68k assembly). Of course, it is easier to write in C, and getting a compiler running is not too hard (go for gcc - try the uclinux website).

I can - the OP came from a .edu domain and the explanation looked very much like the way a homework problem might be set. Comp Arch 101, anyone?

pete

pete@fenelon.com "there's no room for enigmas in built-up areas" HMHB

The OP asked for a compiler. If (s)he manages to get GCC configured and working and uses that to solve the original problem, IMHO, the homework is passed.

Tauno Voipio tauno voipio @ iki fi

Tauno Voipio said for all posterity...

Actually, the OP never mentioned a compiler.

Casey

Then who created the Subject: line??

Grant Edwards grante Yow! ... or were you at driving the PONTIAC that visi.com HONKED at me in MIAMI last Tuesday?

You can find more information about C to 68000 assembly mapping at:

formatting link

formatting link

formatting link

Sandeep

--

formatting link
EventStudio 2.0 - Generate Sequence Diagrams and Use Cases in PDF

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required