[LinuxBIOS] mmap() availability in MinGW

Peter Stuge stuge-linuxbios at cdy.org
Mon Jun 11 01:16:58 CEST 2007

On Sun, Jun 10, 2007 at 04:45:36PM +0700, Darmawan Salihun wrote:
> 1. Is the "platform specific (I'm not sure whether this function is
> platfomr specific or not)" mmap() function is available in MinGW?

MinGW is not really a platform. You may be confusing it with Cygwin.

MinGW is just a native gcc for Win32 and open source header files for
a large part of the Win32 API.

> 2. Do you think using MinGW in DevCPP IDE is acceptable/good enough
> compared to using it in it's command line incarnation?

I think you should use whatever you are most comfortable with.

That said, I see many advantages in having as much code as possible
buildable with MinGW since that means easy cross-compiles and also
dealing with only one compiler.

Finally, I can not imagine that a project will _require_ a particular
IDE to build if it is using MinGW and has some good Makefiles.

> Anyway, this questions has a direct impact on the Winflashrom that
> I'm currently working on. I'm using MS Visual C++ before, and
> I can say that I'm proficient enough with it compared to using
> MinGW. Hopefully, there's proficient MinGW user here that can help.

Again, I often just think of MinGW as just a native Win32 gcc.

The application should be buildable with MinGW without problems and
probably without much special care even if you use an IDE for

The kernel driver may not be as easy to build, depending on what
kind of linker tricks that are required to make kernel drivers.
Also, I'm not sure if the w32api (the open source header project)
includes kernel headers as well.

My advice for getting comfortable with MinGW is to just install it.
It's only a few megabytes.

You may or may not want MSYS as well. If MinGW is the compiler, MSYS
is bash and various other tools and programs that are intended really
to make autoconf configure scripts happy about building using MinGW.

If you install MinGW and MSYS then MSYS does some of the work to set
up environment variables and so on, but it is by no means required
just to run MinGW gcc.

If you want a sample app, look at http://stuge.se/dlg.zip which is
just a really basic dialog example that I've prepared for people who
want to get started creating dialog RC files using a text editor.
(I haven't found any really good RC dialog editor tools.)


More information about the coreboot mailing list