[fpc-pascal] FPC 64bit for windows

Sven Barth pascaldragon at googlemail.com
Fri May 19 17:15:47 CEST 2017


Am 19.05.2017 14:53 schrieb "Lukasz Sokol" <el.es.cr at gmail.com>:
>
> On 19/05/17 13:33, Sven Barth via fpc-pascal wrote:
>
> >>> You don't have to build a 32-bit FPC because an official
> >>> released installer exists. So this is no problem at all. But
> >>> seeing as pretty much everything is moving (or already has moved)
> >>> to 64-bit, why bother with 32-bit these days. [referring to
> >>> desktop and server applications - not embedded devices]
> >>>
> >>
> >> Is there a way for native 64bit application to load a 32bit
> >> library, that then can talk to a 32bit USB driver ? (on Windows)
> >
> > Drivers (at least kernel mode drivers) must be 64-bit on 64-bit
> > Windows (and also basically every other system I'm aware of). However
> > it's perfectly possible to talk with a 64-bit driver from a 32-bit
> > application. And no, you can't load a 32-library from a 64-bit
> > process.
>
> This one is not a kernel-mode (at least so I think because the same
> installation succeeds both on 32bit XPSP3, and in recent Win10 64bit)...
>
> (it's the old old Microchip MCHPFUSB driver used e.g. with PIC18F4550,
driver version 1.3;
>  it's probably not as much a 'driver' as a way to register the PID and
VID with the system,
>  more or less; but the library interfacing it, is 32bit only)

>From what I can see from their site version 1.3 is the first that supports
64-bit and it indeed includes a 64-bit driver (and a 32-bit one as well).
Also if I understand that correctly the source and API information to
access the driver is provided as well, so you could either compile the
library for 64-bit or port it to FPC to solve this.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20170519/234a8995/attachment.html>


More information about the fpc-pascal mailing list