This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: add new target system to gcc
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: Dmitry <forth at km dot ru>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 13 Apr 2004 09:43:01 -0400
- Subject: Re: add new target system to gcc
- References: <407B6E8C.00DAEA.02544@e-post02.e-se.ru>
Dmitry <forth@km.ru> writes:
> I develop ultra-light virtual machine (byte-code interpreter) with stack architecture, optimized for FORTH programming language. It have no any registers, but uses two separate stacks: one only for return adress storing for CALL/RET, and second for data transfer between FORTH words (functions) and temporary data storage.
>
> Today I have only 16-bit VFM (Virtual FORTH Machine) implementation, runs under DOS16 (written using Borland C++ 3.1 8-) and debuger under Win32.
>
> I can write FORTH system myself for this VM, but I prefer to write programs
> in C++, and need special GCC version which supports code generation for my stack machine.
>
> Is it hard to add this target to GCC myself ? For my sorrow I have no any expiriance with compiler writings 8-(
Yes, it would be hard. I don't think gcc currently supports any stack
machines.
Ian