Re: [Freedos-devel] freepascal package oddities

2024-11-04 Thread Ladislav Lacina via Freedos-devel
Komu: FreeDOS Developers Kopie: [email protected] Datum: 4. 11. 2024 11:12:29 Předmět: Re: [Freedos-devel] freepascal package oddities " > On Nov 2, 2024, at 11:53 AM, Eric Auer via Freedos-devel wrote: > > > Hi! Looking at the 34 MB FPC package, I noticed that: > > - quit

Re: [Freedos-devel] freepascal package oddities

2024-11-04 Thread Jerome Shidel via Freedos-devel
> On Nov 2, 2024, at 11:53 AM, Eric Auer via Freedos-devel > wrote: > > > Hi! Looking at the 34 MB FPC package, I noticed that: > > - quite a few go32v2 binaries in the sources (?) are not UPXed > - UPX crashes with a failed assertion for some of those > > and also that: > > - the units /

[Freedos-devel] freepascal package oddities

2024-11-02 Thread Eric Auer via Freedos-devel
Hi! Looking at the 34 MB FPC package, I noticed that: - quite a few go32v2 binaries in the sources (?) are not UPXed - UPX crashes with a failed assertion for some of those and also that: - the units / libraries come as .o and some type of binary files - not sure where the actual source t

Re: [Freedos-devel] FreePascal near to far pointer conversion

2024-01-01 Thread Bernd Böckmann via Freedos-devel
Perhaps you may first try get it running with the large memory model, and if this runs, try to optimize it for a smaller memory model? The following least compiles for me, with A BUNCH of warnings, and the binary is 68k in size, comparing to 11k in the bin folder (did you UPX compress it or is

Re: [Freedos-devel] FreePascal near to far pointer conversion

2024-01-01 Thread Aitor Santamaría via Freedos-devel
Hello there! Sorry for being late on the topic. The following link directs to the forum item that I opened when trying to re-compile FD-KEYB under FPC. Basically, KEYB needs to use different procedures to store a key in the buffer, depending on the parameters and system configuration. The problem

Re: [Freedos-devel] FreePascal near to far pointer conversion

2023-11-12 Thread Rugxulo via Freedos-devel
Hi, On Sun, Nov 12, 2023 at 5:46 AM Bernd Böckmann via Freedos-devel wrote: > > On 12.11.2023 02:44, Rugxulo via Freedos-devel wrote: > > But I still have not found an elegant solution yet to do a widening > conversion of an untyped pointer from near to far. > Should be rarely needed though. For

Re: [Freedos-devel] FreePascal near to far pointer conversion

2023-11-12 Thread Bernd Böckmann via Freedos-devel
On 12.11.2023 02:44, Rugxulo via Freedos-devel wrote: FarAddr internal function Thanks, that brings me further :-) I also changed my coding style from a more C oriented style to a more Pascal like. Unlike in C, one does not have to pass around (explicit) pointers that often. For example inst

Re: [Freedos-devel] FreePascal near to far pointer conversion

2023-11-11 Thread Rugxulo via Freedos-devel
Hi again, On Fri, Nov 10, 2023 at 7:56 AM Bernd Böckmann via Freedos-devel wrote: > > > > > I believe int64 was originally from Delphi. (Isn't there also "long > > long" support in OpenWatcom via "-za99“?) > > Yes, Watcom C supports 64-bit integer arithmetic, in contrast to Turbo C 3.1, > which

Re: [Freedos-devel] FreePascal near to far pointer conversion

2023-11-11 Thread Rugxulo via Freedos-devel
Hi, On Thu, Nov 9, 2023 at 4:39 PM Bernd Böckmann via Freedos-devel wrote: > > > Could you please post the exact message you got from the compiler? > > For something like this "FarPointer(@Buffer)" I get the following error > message: > > "Error: Illegal type conversion: "Pointer" to "FarPointer

Re: [Freedos-devel] FreePascal near to far pointer conversion

2023-11-10 Thread Bernd Böckmann via Freedos-devel
> > I believe int64 was originally from Delphi. (Isn't there also "long > long" support in OpenWatcom via "-za99“?) Hello Rugxulo, Yes, Watcom C supports 64-bit integer arithmetic, in contrast to Turbo C 3.1, which to my knowledge does not, but silently interprets „long long x“ as „long x“, yi

Re: [Freedos-devel] FreePascal near to far pointer conversion

2023-11-10 Thread Bernd Böckmann via Freedos-devel
Hello Hippo, thanks for the hint. I have a copy of Borland Pascal 7 inherited from my father. In fact I think I have learned programming with it when I was a kid, or with a previous version. Fascinating piece of software. But I prefer to build open tools with open tools :-) Greetings, Bernd

Re: [Freedos-devel] FreePascal near to far pointer conversion

2023-11-09 Thread Danilo Pecher via Freedos-devel
As far as I know the earlier Turbo-Pascal compilers (I think 5.5 and earlier) have been freeware'd years ago. They can natively compile 16bit code on Freedos and might be worth a try. You can find even ancient versions of TP, like 3.0 on winworldpc, and I actually quite like to go down memory lane

Re: [Freedos-devel] FreePascal near to far pointer conversion

2023-11-09 Thread Bernd Böckmann via Freedos-devel
Btw, when compiling in large memory model via fpc -Wmlarge the pointer errors when compiling keyb are gone. There are some 20 remaining compile errors. Perhaps these can be solved. Bernd On 09.11.2023 23:38, Bernd Böckmann via Freedos-devel wrote: Hello Aitor, > Could you please post the e

Re: [Freedos-devel] FreePascal near to far pointer conversion

2023-11-09 Thread Bernd Böckmann via Freedos-devel
Hello Aitor, > Could you please post the exact message you got from the compiler? For something like this "FarPointer(@Buffer)" I get the following error message: "Error: Illegal type conversion: "Pointer" to "FarPointer"" My opinion is that this should be supported by the compiler, because

Re: [Freedos-devel] FreePascal near to far pointer conversion

2023-11-09 Thread Aitor Santamaría via Freedos-devel
Hello, Could you please post the exact message you got from the compiler? I got mysefl problems with such convertions trying to compile FD-KEYB with FPC, but although I posted for help in the forums, I didn't get anything really useful and finally gave up. But I am curious if you get the same err

Re: [Freedos-devel] FreePascal near to far pointer conversion

2023-11-08 Thread Rugxulo via Freedos-devel
Hi, On Wed, Nov 8, 2023 at 2:21 PM Bernd Böckmann via Freedos-devel wrote: > > the tests I did showed that FreePascal is perfectly capable of producing > reasonably small binaries fitting the small memory model, if you do not > require the full language feature set (stay away from ObjFpc / Delphi

Re: [Freedos-devel] FreePascal near to far pointer conversion

2023-11-08 Thread Rugxulo via Freedos-devel
Hi, On Wed, Nov 8, 2023 at 1:42 PM Bernd Böckmann via Freedos-devel wrote: > > has anyone recently played around with the FreePascal 8086 cross > compiler to generate DOS executables? I try to convert a near pointer to > a far pointer while working under the small memory model, but that is > not

Re: [Freedos-devel] FreePascal near to far pointer conversion

2023-11-08 Thread Bernd Böckmann via Freedos-devel
Hi Ralf, the tests I did showed that FreePascal is perfectly capable of producing reasonably small binaries fitting the small memory model, if you do not require the full language feature set (stay away from ObjFpc / Delphi modes). SysUtils and exception handling pulls in a significant amount

Re: [Freedos-devel] FreePascal near to far pointer conversion

2023-11-08 Thread Ralf Quint via Freedos-devel
On 11/8/2023 11:40 AM, Bernd Böckmann via Freedos-devel wrote: Hi all, has anyone recently played around with the FreePascal 8086 cross compiler to generate DOS executables? I try to convert a near pointer to a far pointer while working under the small memory model, but that is not as trivial

[Freedos-devel] FreePascal near to far pointer conversion

2023-11-08 Thread Bernd Böckmann via Freedos-devel
Hi all, has anyone recently played around with the FreePascal 8086 cross compiler to generate DOS executables? I try to convert a near pointer to a far pointer while working under the small memory model, but that is not as trivial as it should be, because I have not found a language / library

Re: [Freedos-devel] FreePascal bug [off-list]

2023-04-13 Thread Ladislav Lacina
The bug description is very confusing. It is not clear whether user complains about missing Video unit (files VIDEO.PPU and VIDEO.O) or the fact that under DOS/GO32V2 platform are not available the GUI Delphi-like elements. If it is the firsr case it is probably a LFN related problem. The Video

Re: [Freedos-devel] FreePascal bug [off-list]

2023-04-13 Thread Aitor Santamaría
Hello, As for myself, I attempted to compile FD-KEYB with FPC 16-bit, which I find to be a good proof, as it has heavy parts in Assembler, other parts in Pascal, and many procedure-type variables. It helped me fix a couple of minor (almost cometic) failures in the code. But I did not succeed. The

Re: [Freedos-devel] FreePascal bug [off-list]

2023-04-13 Thread Rugxulo
Hi, On Wed, Apr 12, 2023 at 7:10 PM Jim Hall wrote: > > > I believe this is a Free Pascal issue because the short > > hello world test works, but if you decide to use any > > objects, the Video unit is completely missing. I don't do a lot of graphical programming, so I'm unfamiliar with the "Vid

Re: [Freedos-devel] FreePascal bug [off-list]

2023-04-12 Thread Ralf Quint
On 4/12/2023 5:08 PM, Jim Hall wrote: A user emailed me (late last year) with a bug/issue report on FreePascal in FreeDOS 1.3. I was going to (finally) reply to say they really should ask the FreePascal people about this, but I realized I couldn't really make out what they were saying. This is th

[Freedos-devel] FreePascal bug [off-list]

2023-04-12 Thread Jim Hall
A user emailed me (late last year) with a bug/issue report on FreePascal in FreeDOS 1.3. I was going to (finally) reply to say they really should ask the FreePascal people about this, but I realized I couldn't really make out what they were saying. This is the part of their email that relates to th

Re: [Freedos-devel] FreePascal 2.6.2 released

2013-03-03 Thread Rugxulo
Hi, On Mar 3, 2013 8:09 AM, "Aitor Santamaría" wrote: > > At least the posting task has been done :) > (and as usual, corrections by native English speakers are welcome). > Cool, thanks. I did also mirror the files to iBiblio the other day, too. --

Re: [Freedos-devel] FreePascal 2.6.2 released

2013-03-03 Thread Aitor Santamaría
At least the posting task has been done :) (and as usual, corrections by native English speakers are welcome). Aitor 2013/2/28 Rugxulo > Hi guys, quoting from the main http://www.freepascal.org page: > > == > February 23rd, 2013 > > FPC 2

[Freedos-devel] FreePascal 2.6.2 released

2013-02-28 Thread Rugxulo
Hi guys, quoting from the main http://www.freepascal.org page: == February 23rd, 2013 FPC 2.6.2 has been released! 2.6.2 is a fixes update from the 2.6.x branch The new features include, amongst others: Compiler: Improvements and fixes for

Re: [Freedos-devel] FreePascal

2007-09-12 Thread Robert Riebisch
Jim Hall wrote: > programmer, so this isn't something I can do - is anyone here planning > to compile the latest 2.2.0 for DOS? We are working on it. Robert Riebisch -- BTTR Software http://www.bttr-software.de/ - This SF.

[Freedos-devel] FreePascal

2007-09-10 Thread Jim Hall
I saw that FreePascal 2.2.0 has been released ... but the latest version for DOS is still 2.0.4 (Aug 2006). I'm not a Pascal programmer, so this isn't something I can do - is anyone here planning to compile the latest 2.2.0 for DOS? If so, please contact me off-list so I can get a copy uploaded to