comp.lang.ada
 help / color / mirror / Atom feed
* GNATDOS on Win2000?
@ 2001-12-14 12:02 chris.danx
  2001-12-14 15:42 ` David C. Hoos
  2001-12-17 14:40 ` Charles Fr. Rey
  0 siblings, 2 replies; 5+ messages in thread
From: chris.danx @ 2001-12-14 12:02 UTC (permalink / raw)


Hi,

I appologise if this post is slightly OT (I've lost the address for
GNATLIST).  Can GNATDOS be used on win2000?  I only want to compile stuff
not run anything it produces.  I haven't used 2000 (by the time I read your
replies, it will be installed), I know it's got a DOS subsystem, although I
don't know if it is sufficient to run GNAT for Dos.  Has anyone had any
success compiling programs on win2000 with this GNAT?

If it doesn't work, then I'm going to have to play with the Windows compiler
(probably the source, then compile it) to do what I want (OS development).
The Win compiler didn't work as it is (rather I couldn't get it to work with
GRUB, it just hangs).


Thanks,
Chris





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: GNATDOS on Win2000?
@ 2001-12-14 15:30 Gautier Write-only-address
  0 siblings, 0 replies; 5+ messages in thread
From: Gautier Write-only-address @ 2001-12-14 15:30 UTC (permalink / raw)
  To: comp.lang.ada

>I appologise if this post is slightly OT (I've lost the address for
>GNATLIST).
  HTH: http://www.mysunrise.ch/users/gdm/gnatlist.htm

>Can GNATDOS be used on win2000?  I only want to compile stuff
>not run anything it produces.

If Win2000 has the same behaviour as WinNT 4, no problem: the
compiler just works fine.
For running specific DOS things (reprogramming
hardware access, BIOS etc.) the NTVDM has a bit random behaviours.

HTH G.


_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: GNATDOS on Win2000?
  2001-12-14 12:02 chris.danx
@ 2001-12-14 15:42 ` David C. Hoos
  2001-12-14 22:10   ` chris.danx
  2001-12-17 14:40 ` Charles Fr. Rey
  1 sibling, 1 reply; 5+ messages in thread
From: David C. Hoos @ 2001-12-14 15:42 UTC (permalink / raw)
  To: comp.lang.ada

Hi Chris,

It's really hard to give an answer when so few details
are given.  I suspect that gnat for DOS will work on Win2k,
since I have used it on both Win9x and NT.

However, I also suspect you will have the same problem
with Grub, because I suspect the problem is that Grub
wants to load things that will begin execution in real mode,
rather than the protected mode in which both gnat for Win32
and gnat for DOS run.

I don't know whether there are any Ada compilers around
these days which will build real mode executables.

On the other hand, my suspicions about the cause of the
Grub problem could be completely wrong.

----- Original Message -----
From: "chris.danx" <chris.danx@ntlworld.com>
Newsgroups: comp.lang.ada
To: <comp.lang.ada@ada.eu.org>
Sent: Friday, December 14, 2001 6:02 AM
Subject: GNATDOS on Win2000?


> Hi,
>
> I appologise if this post is slightly OT (I've lost the address for
> GNATLIST).  Can GNATDOS be used on win2000?  I only want to compile stuff
> not run anything it produces.  I haven't used 2000 (by the time I read
your
> replies, it will be installed), I know it's got a DOS subsystem, although
I
> don't know if it is sufficient to run GNAT for Dos.  Has anyone had any
> success compiling programs on win2000 with this GNAT?
>
> If it doesn't work, then I'm going to have to play with the Windows
compiler
> (probably the source, then compile it) to do what I want (OS development).
> The Win compiler didn't work as it is (rather I couldn't get it to work
with
> GRUB, it just hangs).
>
>
> Thanks,
> Chris
>
>
> _______________________________________________
> comp.lang.ada mailing list
> comp.lang.ada@ada.eu.org
> http://ada.eu.org/mailman/listinfo/comp.lang.ada
>




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: GNATDOS on Win2000?
  2001-12-14 15:42 ` David C. Hoos
@ 2001-12-14 22:10   ` chris.danx
  0 siblings, 0 replies; 5+ messages in thread
From: chris.danx @ 2001-12-14 22:10 UTC (permalink / raw)



"David C. Hoos" <david.c.hoos.sr@ada95.com> wrote in message
news:mailman.1008344342.3245.comp.lang.ada@ada.eu.org...
> Hi Chris,
>
> It's really hard to give an answer when so few details
> are given.  I suspect that gnat for DOS will work on Win2k,
> since I have used it on both Win9x and NT.

Hope so!  I'll install it tommorrow and try it.

> However, I also suspect you will have the same problem
> with Grub, because I suspect the problem is that Grub
> wants to load things that will begin execution in real mode,
> rather than the protected mode in which both gnat for Win32
> and gnat for DOS run.

The issue was not with GRUB loading 16bit code, it can and does load 32bit
code.  The issue was the Windows compiler doing something that prevented it
from being used with GRUB.  Perhaps it put win32 specific stuff in the code
or something like that, I don't know (I did use options to tell it not to
link the default executable startup routine, and linked it with a customised
asm routine later on).  All I know is that when the code was compiled with
the DOS version it worked and when compiled with the windows version it
didn't.


> I don't know whether there are any Ada compilers around
> these days which will build real mode executables.

There are supposed to be Ada 83 compilers floating about that compile to
real mode (someone pointed me to where to purchase a copy a while back,
before I got to grips with grub  -- I was going to write my own
bootloader)).







^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: GNATDOS on Win2000?
  2001-12-14 12:02 chris.danx
  2001-12-14 15:42 ` David C. Hoos
@ 2001-12-17 14:40 ` Charles Fr. Rey
  1 sibling, 0 replies; 5+ messages in thread
From: Charles Fr. Rey @ 2001-12-17 14:40 UTC (permalink / raw)


Yes it works but there's also a specific version of GNAT for NT wich
runs fines on w2k.
Every executable produced runs also without any problem, only if you
don't try to access hardware of course. Check out AdaGide for editing,
it has also the capability to compile directly with GNAT.

"chris.danx" wrote:
> 
> Hi,
> 
> I appologise if this post is slightly OT (I've lost the address for
> GNATLIST).  Can GNATDOS be used on win2000?  I only want to compile stuff
> not run anything it produces.  I haven't used 2000 (by the time I read your
> replies, it will be installed), I know it's got a DOS subsystem, although I
> don't know if it is sufficient to run GNAT for Dos.  Has anyone had any
> success compiling programs on win2000 with this GNAT?
> 
> If it doesn't work, then I'm going to have to play with the Windows compiler
> (probably the source, then compile it) to do what I want (OS development).
> The Win compiler didn't work as it is (rather I couldn't get it to work with
> GRUB, it just hangs).
> 
> Thanks,
> Chris



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-12-17 14:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-14 15:30 GNATDOS on Win2000? Gautier Write-only-address
  -- strict thread matches above, loose matches on Subject: below --
2001-12-14 12:02 chris.danx
2001-12-14 15:42 ` David C. Hoos
2001-12-14 22:10   ` chris.danx
2001-12-17 14:40 ` Charles Fr. Rey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox