Article View: comp.os.msdos.programmer
Article #5149Re: Novice 386 C Compiler/Video Driver/EMM Questions
From: Joe Huffman
Date: Tue, 12 Mar 1991 17:46
Date: Tue, 12 Mar 1991 17:46
56 lines
2406 bytes
2406 bytes
ressler@galileo.ifa.hawaii.edu (Mike "IR" Ressler) writes:
>Specific questions: Do any compilers out there compile real, honest-to-God,
>386 instructions as opposed to only 286 and lower? What things do I need so
>I can do a malloc for 1 Mbyte? Any compilers know how to talk to the
>SpeedSTAR card so I can get 1024x768x256 as opposed to 640x480x16?
Zortech C/C++ can give you 386 code with the PharLap DOS extender. The
graphics library (which I wrote) currently does not support a 512 x 512 x
256 simultaneous color mode. But if your graphics board supports VESA
then the high resolution (greater than 320 x 200) 256 color modes will be
supported soon. If it doesn't support VESA then either you can easily make
the driver yourself (example C code for 320 x 200 x 256 colors is supplied)
or send me the technical information and I might be persuaded to support
the desired mode myself...
To malloc 1 Mbyte with Zortech C/C++ with the PharLap DOS extender:
#include <stdio.h>
#include <stdlib.h>
#define BUF_SIZE 1000000
int main()
{
char *p = malloc(BUF_SIZE);
if(p)
{
printf("malloc(%d) succeeded.\n", BUF_SIZE);
free(p);
}
else
fputs("malloc() failed.\n", stdout);
return 0;
}
>Any advice on how to put the software together for not too many dollar$
>would be greatly appreciated - I'm a starving grad student, etc. I've
Zortech gives educational discounts to people that have .EDU in their email
address. Call 800-848-8408 and ask for Renee to order (or to get
information).
---
Zortech mailing list: send email to 'ztc-list-request@uunet.uu.net' with:
Add: your-user-name@your-machine-name
In the body of the message.
---
Send Zortech bug reports to 'zortech-bugs@zortech.com'
Send requests for educational discounts to 'zortech-ed@zortech.com'
---
Zortech is my major source of income. Statements about them or their
competitors cannot be totally without bias.
--
joe@proto.com
Technical Details
Message-ID:
<1991Mar12.174602.25258@proto.com>Path:
arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!samsung!spool.mu.edu!uunet!proto!joeReferences:
<11886@uhccux.uhcc.Hawaii.Edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!samsung!spool.mu.edu!uunet!proto!joe From: joe@proto.com (Joe Huffman) Newsgroups: comp.os.msdos.programmer Subject: Re: Novice 386 C Compiler/Video Driver/EMM Questions Message-ID: <1991Mar12.174602.25258@proto.com> Date: 12 Mar 91 17:46:02 GMT References: <11886@uhccux.uhcc.Hawaii.Edu> Organization: Prototronics @ Sandpoint, Idaho Lines: 56