Re: [Sdcc-user] An experimental LLVM+SDCC-based toolchain for 8-bit microcontrollers

2016-11-11 Thread Philipp Klaus Krause
On 09.11.2016 04:00, alvin albrecht wrote:
> 
> On 07.11.2016 20:12, Philipp Klaus Krause wrote:
>> On 03.11.2016 12:14, Philipp Klaus Krause wrote:
>>> On 03.11.2016 00:56, alvin albrecht wrote:
 
> * Install LLVM 3.8 (e.g. using apt-get on Debian).
>> release_38 for cfe.
> 
> Much better, everything compiles fine.
> 
> The llvm-cbe seems to be geared toward compiling for gcc and msvc

Yes. Most of my work on the cbe backend so far was about making the
output more standard-compliant. A few weeks ago, the output wouldn't
compile with SDCC at all even for simple examples due to too many
GCC-isms and such. It has improved a lot since, but there are still a
few GCC/MSVC/clang-isms remaining that tend to get emitted for more
complex code.

Philipp

--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
___
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user


Re: [Sdcc-user] An experimental LLVM+SDCC-based toolchain for 8-bit microcontrollers

2016-11-11 Thread Philipp Klaus Krause
On 09.11.2016 04:00, alvin albrecht wrote:
> 
> llvm-cbe began wrapping some types into
> structures as pairs.

Did this happen for anything other than arrays? LLVM arrays semantics
are different from C (where arrays sometimes decay to pointers, while
structs don't). Keep in mind that the cbe also needs to be able to
compile LLVM code to C that came from other sources than the cfe.

Philipp

--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
___
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user