View mode: basic / threaded / horizontal-split · Log in · Help
December 26, 2008
Re: dmd platform support - poll
Walter Bright wrote:
> Chad J wrote:
>> Or, better yet:
>> Cross-platform C code.
>> Get me that and I have a lot less reason to even care about the others.
> 
> The problem with generating C code is: exception handling

Perhaps you could emit C++ code that is nearly identical to C code.
This then gives you the exception handling.  For targets that don't have
a C++ compiler, generate C.  Exception handling will just have to be
broken on those.  In terms of everything on the list and game consoles,
this should work, no?

It might be a problem for the microcontrollers mentioned elsewhere in
this thread, since those may only have the C compilers available.  I can
live with this.  (They'll only be missing exception handling support...
I suspect there'll be bigger problems on these machines.)

Maybe there is a better way?

At any rate, please don't just give up on this!  GAME CONSOLES Walter!
GAME CONSOLES!
;)
December 26, 2008
Re: dmd platform support - poll
Why not just LLVM? let LLVM do the rest?

> What platforms for dmd would you be most interested in using?
>
> .net
> jvm
> mac osx 32 bit intel
> mac osx 64 bit intel
> linux 64 bit
> windows 64 bit
> freebsd 32 bit
> netbsd 32 bit
>
> other?
December 26, 2008
Re: dmd platform support - poll
Sean Kelly wrote:
> Robert Jacques wrote:
>>
>> I'm perfectly happy with 32 windows & linux, but have some minor
>> interest in:
>> Solaris x86
>
> Oh good point. SPARC Solaris would be nice as well. Though that's only
> if I plan to use D at work.
>
>
> Sean

Same for me. I also have solaris at work though I very much doubt it 
that I'll be allowed to use D instead of C++.
December 26, 2008
Re: dmd platform support - poll
LLVM!!!
Only LLVM!!!
Nothing more!!
It will be cross-platform out of the box!!!

Walter Bright пишет:
> What platforms for dmd would you be most interested in using?
> 
> .net
> jvm
> mac osx 32 bit intel
> mac osx 64 bit intel
> linux 64 bit
> windows 64 bit
> freebsd 32 bit
> netbsd 32 bit
> 
> other?
December 26, 2008
Re: dmd platform support - poll
Walter Bright wrote:
> Chad J wrote:
>> Or, better yet:
>> Cross-platform C code.
>> Get me that and I have a lot less reason to even care about the others.
> 
> The problem with generating C code is: exception handling

	Can't you do it with setjmp and longjmp? AFAIK, that's one of the
ways g++ does it on windows for example.

		Jerome
- --
mailto:jeberger@free.fr
http://jeberger.free.fr
Jabber: jeberger@jabber.fr
December 26, 2008
Re: dmd platform support - poll
Yo, Walter, do you want to beat GCC or LLVM?
Why don't you want to work on those front-ends?

> What platforms for dmd would you be most interested in using?
> 
> .net
> jvm
> mac osx 32 bit intel
> mac osx 64 bit intel
> linux 64 bit
> windows 64 bit
> freebsd 32 bit
> netbsd 32 bit
> 
> other?
December 26, 2008
Re: dmd platform support - poll
Walter Bright Wrote:

> What platforms for dmd would you be most interested in using?
> 
> .net
> jvm
> mac osx 32 bit intel
> mac osx 64 bit intel
> linux 64 bit
> windows 64 bit
> freebsd 32 bit
> netbsd 32 bit
> 
> other?

No doubt, linux 64 bit.
December 26, 2008
Re: dmd platform support - poll
"Chad J" <gamerchad@__spam.is.bad__gmail.com> wrote in message 
news:gj1uou$1ctu$1@digitalmars.com...
> Walter Bright wrote:
>> Chad J wrote:
>>> Or, better yet:
>>> Cross-platform C code.
>>> Get me that and I have a lot less reason to even care about the others.
>>
>> The problem with generating C code is: exception handling
>
> At any rate, please don't just give up on this!  GAME CONSOLES Walter!
> GAME CONSOLES!
> ;)

Yea, I've always seen videogames as one of the biggest and best applictions 
for D, and the main one that originally got me excited for it. But without 
the ability to use it on game-consoles/embedded-cpus/microcontrollers, it'll 
never be worthwhile for most developers. They'd be forced into just one 
platform, the PC (In this case, I'm including Mac as a "Personal Computer").
December 26, 2008
Re: dmd platform support - poll
Nick Sabalausky пишет:
> "Chad J" <gamerchad@__spam.is.bad__gmail.com> wrote in message 
> news:gj1uou$1ctu$1@digitalmars.com...
>> Walter Bright wrote:
>>> Chad J wrote:
>>>> Or, better yet:
>>>> Cross-platform C code.
>>>> Get me that and I have a lot less reason to even care about the others.
>>> The problem with generating C code is: exception handling
>> At any rate, please don't just give up on this!  GAME CONSOLES Walter!
>> GAME CONSOLES!
>> ;)
> 
> Yea, I've always seen videogames as one of the biggest and best applictions 
> for D, and the main one that originally got me excited for it. But without 
> the ability to use it on game-consoles/embedded-cpus/microcontrollers, it'll 
> never be worthwhile for most developers. They'd be forced into just one 
> platform, the PC (In this case, I'm including Mac as a "Personal Computer"). 
> 
> 

It seems to me it is necessary to reconsider it:

Support for 16 bit computers. No consideration is given in D for mixed
near/far pointers and all the machinations necessary to generate good 16
bit code. The D language design assumes at least a 32 bit flat memory
space. D will fit smoothly into 64 bit architectures.
(http://www.digitalmars.com/d/2.0/overview.html)
December 26, 2008
Re: dmd platform support - poll
Victor Tyurin wrote:
> LLVM!!!
> Only LLVM!!!
> Nothing more!!
> It will be cross-platform out of the box!!!

But it doesn't even do win32 yet!

> 
> Walter Bright пишет:
>> What platforms for dmd would you be most interested in using?
>>
>> .net
>> jvm
>> mac osx 32 bit intel
>> mac osx 64 bit intel
>> linux 64 bit
>> windows 64 bit
>> freebsd 32 bit
>> netbsd 32 bit
>>
>> other?
1 2 3 4 5 6 7 8
Top | Discussion index | About this forum | D home