Is there any benefit for a Delphi or Free Pascal/Lazarus programmer to build a
C DLL in debug mode ?
Could it and would it somehow lead to better debugging ?
If so how ? So far I don't notice any difference between debug or release build
from within Delphi.
Maybe Release/Debug in this case/cont
. Order of field and property violations "field before property" rule.
(Both problems demonstrated in TDataExample3)
{
version 0.03 created on 14 august 2022 by Skybuck Flying:
Today I remember the rule which this union field is conflicting with.
The rule: "field before property"
program TestProgram3;
{
Test program to illustrate the 'union' followed by property problem in Delphi
language and Free Pascal Language
version 0.01 created on 1 august 2022 by Skybuck Flying
There is a problem with "unions" in Delphi language:
When a property follows a &q
(I mainly write this second e-mail to prevent you from wasting time on the
previous e-mail, cause the conversion was already quite successfull with a
different tool, read below)
The in Delphi written tool CHET was used to convert the C api for UBER H3
library.
https://github.com/neslib/Chet
[h
User programmer can add it to Tobject via object helpers, at least in Delphi,
so my answer to this question would be: no.
From: vfclists .
Sent: Thursday, 11 July 2013 22:22
To: Lazarus mailing list ; FPC developers' list ; FPC-Pascal users discussions
Subject: [fpc-devel] Should TObject or TCo
So FPC can now compile to java byte code.
I don't even have Java installed on Windows because on Windows it's a
security risk.
Nice to see some more virtual instruction set support though.
I'd like to see compile to redcode or compile to cuda/ptx ;)
Also let me ask one question about "Delphi
Free Pascal to Red Code compiling...
Can it be done ? ;)
Could make free pascal a little bit more interesting :)
Bye,
Skybuck :)
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
I would like to bring to your attention this project:
http://sourceforge.net/forum/forum.php?forum_id=365095
DWPL... it was quite impressive... it had a text gui which was compatible
with Delphi... not sure if it's still compatible with Delphi 2007...
probably not... maybe it has the same issu
- Original Message -
From: "Florian Klaempfl"
To: "FPC-Pascal users discussions"
Sent: Thursday, December 18, 2008 12:10 PM
Subject: Re: [fpc-pascal] FreePascal/Lazarus plug-in's for Delphi.
Skybuck Flying schrieb:
Hello,
To make it easy for Delphi pro
Hello,
To make it easy for Delphi programmers to write code in Delphi and then
switch to free pascal/lazarus the following could be done:
1. Export code from Free Pascal into Delphi packages so they can be
installed in Delphi.
2. Export code from Lazarus into Delphi packages so they can be in
That didn't go well.
Couldn't install package, the installer said.
RTF can't be opened.
So much for that.
Bye,
Skybuck.
- Original Message -
From: "Skybuck Flying"
To: "FPC-Pascal users discussions"
Sent: Sunday, December 14, 2008 11:25 PM
I suspect cross compiling not functional.
I did find a free pascal compiler for Mac OS X so I ll give that one a try
;)
This does require compiling inside a virtual machine which is less
ideal/slow ? ;)
And could expose source code but ok... net's disabled for now I hope ;)
Bye,
Skybuck.
Hello,
1. I start fp
2. I open file:
program HelloWorldv2;
{$mode delphi}
begin
writeln('Hello Free Pascal World !');
readln;
end.
3. I tried to compile/build to "Darwin i386".
4. Error/compile screen says:
Main file: Y:\..\helloworld\helloworldv2.pas
Failed to compile...
I'd say if whoever has enough drive to try something like this, simply
start by implementing the kernel. Something relatively simple so that
your PC can boot using a Object Pascal written kernel. No matter if
there is no user interaction, shell or user level programs. Just show
that you CAN write
Re: [fpc-pascal] Porting linux to pascal, would it be, possible ?
Skybuck Flying schreef:
If everybody does a little bit it could go quite quickly.
Some (arbitrary numbers) from http://www.ohloh.net/p/linux:
Codebase 10,679,927 lines
Effort (est.) 3,396 Person Years
So, if everybody on thi
If everybody does a little bit it could go quite quickly.
Question is:
Which linux distro ? ;)
Maybe even some BSD version so that closed-source os-es could be done as
well.
Though I onced tried FreeBSD... I couldn't even figure out the gui or how to
start an app..
So maybe linux more use
Hello,
An open source pascal operating system could be cool.
Would translating/porting linux to pascal be possible ?
Bye,
Skybuck.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Hello,
Major productivity improvements with version 0.09:
New features:
+ Automatic renaming of files/versions in unit/uses clausule.
+ Automatic cleanup
Small new features:
+ Project file extensions added.
Note:
Versioning is not done for dcr's those need to be done manually ;)
Free Down
Hello,
Skybuck's ODE version 0.08 is now available:
http://cid-aedd0ea32d61bc86.skydrive.live.com/browse.aspx/Delphi
New feature:
Automatic versioning of filenames:
Example:
folder
blablabla_version_001.pas
bla_version_001.pas
folder -> "increment file versions"
Tada:
folder
blablabla_ver
FPC needs to preserve ebx, esi and edi.
So it's push ebx + push esi + push edi vs pushad. And same for pop.
According to my AMD optimization manual.
pushad requires 6 latency.
push register requires 3 latency.
So pushad should be faster.
Bye,
Skybuck.
Ok,
I already solved problem by using:
pushad
.. rest of asm ...
popad
However this might be slower than just a few pushes and pops ?
So any slight performance improvements welcome, but I am already quite happy
with this solution ! ;)
Bye,
Skybuck.
*}
{* DEALINGS IN THE SOFTWARE.
*}
{**}
{
Optimized version 2.01 created on 18 march 2008 by Skybuck Flying
ASM from Crypto++ 5.5.2
}
interface
uses
Classes,
Sysutils,
DCPcrypt_version_201,
DCPconst_version_201;
type
TDCPOptimizedTiger
Hmmm.
Visual Studio 2008 seems to produce even slower code for the True 64 bit
integers.
Also when I set it to release, something strange happens and it only take 7
ticks or so... while normally it takes 5 million ticks ?
Weird.
// Test64BitPerformance.cpp : Defines the entry point for the
ger (int64) vs native floating point (double)
performance
version 0.01 created on 7 february 2008 by Skybuck Flying
My (Skybuck)'s Conclusions are:
1. Simulated ints faster for additions and subtractions than doubles.
2. Simulated ints slower for multiplications and divisions than do
-
From: "Daniƫl Mantione" <[EMAIL PROTECTED]>
To: "FPC-Pascal users discussions"
Sent: Saturday, February 16, 2008 5:24 PM
Subject: Re: [fpc-pascal] Empty record inside another record ?
Op Fri, 15 Feb 2008, schreef Skybuck Flying:
To me it seems like some kind of tr
Sent: Saturday, February 16, 2008 5:24 PM
Subject: Re: [fpc-pascal] Empty record inside another record ?
Op Fri, 15 Feb 2008, schreef Skybuck Flying:
To me it seems like some kind of trick, to extend a record at runtime.
The empty record field, functions as a sort of offset/label/poin
cal users discussions"
Sent: Saturday, February 16, 2008 5:24 PM
Subject: Re: [fpc-pascal] Empty record inside another record ?
Op Fri, 15 Feb 2008, schreef Skybuck Flying:
To me it seems like some kind of trick, to extend a record at runtime.
The empty record field, functions as a sort
Hello,
I have come to the point where I want to add files to the search/unit path.
I have spaces in my folders and the compiler fails to find the files.
This raises some questions:
1. How independant is free pascal compiler ? What other tools does it depend
on ?
2. What exactly happens when
In every language I know, words can have multiple meanings.
The context in which the words are used determines their meaning.
One possible reason could be because there is so much to describe that
coming up with unique words might be impossible or inpractical.
Bye,
Skybuck.
Skybuck
For records, I would use an extension field like:
IP.Payload
and
UDP.Payload
I would hardly call that obfuscation :)
Bye,
Skybuck.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Well ok,
I see one benefit of using objects so far.
No extension field needed per record/object, makes the code less complex ;)
Bye,
Skybuck.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fp
What's the benefit of using objects ?
One drawback of objects already discovered:
Objects cannot have the same field identifiers.
A problem that does not exist with records, and empty records.
// object example, pointers and typecasts still necessary.
program Project1;
{$APPTYPE CONSOLE}
us
tuff and ask on free pascal compiler list, maybe they know
something about this ;) I wonder if free pascal supports this trick as well
;)
Bye,
Skybuck.
"Skybuck Flying" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hello,
What's going on here:
type
How would you implement the specification ?
Would it be possible to "simply" embed the complete compiler into a DLL ?
Or would that make little sense ?
Bye,
Skybuck.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.
Hello,
Here is my idea for a compiler application programming interface (api) /
specification:
type
// informs which file was tried by compiler, if successfull error text
should be nil, else it should contain some kind of error messages
TcompilerFileTriedCallback = procedure( FullFilename : P
Lol funny.
Lot's of gui tweaks, it's *nice* :)
That's the magic of Delphi :)
Bye,
Skybuck.
Skybuck Flying ha scritto:
Look in the subversion folder.
Current version is 0.04
I gave a look. The only code I found there is:
94 procedure TForm1.FileListBox1Click(Sender:
Look in the subversion folder.
Current version is 0.04
Bye,
Skybuck.
Lazarus=waste of time for me.
Well, I tried alternatives for Lazarus like e.g. this ODE thing :
https://sourceforge.net/project/showfiles.php?group_id=217653
and they didn't even had a readily usable release.
___
Lazarus=waste of time for me.
Bye,
Skybuck.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Hello,
My project called: Skybuck's ODE is getting off the ground :)
The project's website, source code, collobaration support is located at:
https://sourceforge.net/projects/skybuckode/
For now one type of job is available:
Syntax highlighting based on SynEdit.
More info is in the help foru
Ok,
I will open source my little IDE so other people can help with it. Or use it
in their own IDE.
For now I am looking for:
1. A replacement for RichEdit which has syntax highlighting for
pascal/delphi. Line numbers are a big plus.
2. Some help with a DLL/API interface/specification.
For
Hello,
Is there a special way to interface with the free pascal compiler, for
example via a DLL/API ?
Just use the compiler unit in your project.
I want to develop the IDE in Delphi 2007.
Is it still possible to interface via the compiler unit ???
Bye,
Skybuck.
Hello,
Is there a special way to interface with the free pascal compiler, for
example via a DLL/API ?
Or is an IDE supposed to interface via the FPC executable, command line
parameters, and input files and console output with possibly output
re-direction to files or so ?
For example, I bui
Nothing to download yet ? Oh :(
Bye,
Skybuck.
Then use it as a gateway to FPC :):):)
look at the crossfpc project. It does exactly that. Simon Kissel is the
head
of that project.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepasc
I don't like lazarus so much :)
I like Delphi 2007 IDE much better :)
Bye,
Skybuck.
What about Lazarus?
-Marco
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Hello,
Delphi's compiler/linker is probably malfunctioning for uint64 types.
It would be nice if free pascal compiler/linker/debugger can be used as a
replacement.
So that I can still use the Delphi IDE.
To do that probably requires replacing some DLL.
Maybe like:
DCC.DLL or something like
Oh by I do listen.
This mailing list has been most usefull to solving some of the problems :)
Thanks people ! =D
Bye,
Skybuck ;)
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
It's not really a problem so far it seems.
Simply replace record with object and it will work and compile at least in
Delphi.
I haven't tried FPC yet... but if it wouldn't compile that would be amazing
and a problem.
None the less, the example remains interesting.
It describes a general pr
Ok, this morning I thought about it and maybe that will work.
(I also just tried it, and it seems to work for now !)
However what about the future, what if Tobject is dropped ?
It probably will not happen because Tobject seems pretty important.
Objects can have properties too.
Only little rem
Outlook express in combination with hotmail.
I see one big long list of messages all mixed etc.
Anyway to put the messages into message-threads ?
Bye,
Skybuck.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/ma
Doesn't make much sense to me at least.
Who still codes in 16 bit or turbo pascal ?
64 KB programs ?
Terrible limitations.
I am glad those days are dead/gone/over.
Bye,
Skybuck.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lis
efinetly usuable and actually will increase the performance of my
code !
NEAR ZERO PERFORMANCE HIT...
Just need a read once and write once... LOVELY
And can code it just once LOL LOVELY !
MAXIMUM COMPACTNESS
NO GAPS
LOVELY ;)
// *** Begin of Code ***
program ProjectSelectingStructureV6;
{$A
Hello,
Delphi 2007 has another pretty handy new feature:
"Properties in records".
For example it's even possible to have index properties.
Some that I could write code using the record like:
myRecord.SomeField[SomeIndex] := 12345;
then the property methods can place the value 12345 anywhere
mails make it very hard to follow a discussion ?!??
Bye,
Skybuck.
- Original Message -
From: "Skybuck Flying" <[EMAIL PROTECTED]>
To: "FPC-Pascal users discussions"
Sent: Saturday, February 09, 2008 9:56 PM
Subject: Re: [fpc-pascal] Re: Procedures in records
Yeah, well, what exactly is the difference ?
The guide doesn't explain.
I assume free pascal does support the "class" keyword ?
Bye,
Skybuck.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc
Hello,
This fpc example seems to do more or less the same as the Delphi static
class/record procedure example.
Only extra requirement is to declare a object instance variable and use that
to call the test routine.
Less ideal.
type
TmyRecord = record
A,B,C,D,E,F : integer;
end;
TmyObject
I must correct myself.
The code supplied did not compile in Delphi as well.
However a similiar design is possible in Delphi so I supplied a new example
in a new posting...
Anyway I will further explore what it takes to make the object work in fpc
;)
Bye,
Skybuck.
__
Hello,
Delphi allows the following code to be compiled and run:
// *** Begin of Demo ***
program Project1;
{$APPTYPE CONSOLE}
uses
SysUtils,
Unit1 in 'Unit1.pas';
type
TmyRecord = record
A,B,C,D,E,F : integer;
end;
TmyObject = record
A,B,C,D,E,F : integer;
class procedure Test; stati
Not quite buster !
// *** Demo problem begin ***
type
TmyRecord = record
A,B,C,D,E,F : integer;
end;
TmyObject = object
A,B,C,D,E,F : integer;
procedure Test;
end;
procedure TmyObject.Test;
begin
A := 5;
end;
begin
writeln( SizeOf(TmyRecord) );
writeln( SizeOf(TmyObject) );
TmyObject.
e with fpc 2.2.0
It's simple, you declared a prototype of a class, so you do not need
to declare the entire structure of the class.
type
Tpenis = class;
and that's it
Ido
On Feb 9, 2008 10:04 PM, Skybuck Flying <[EMAIL PROTECTED]> wrote:
Hi,
The following simple and v
Hello,
Borland pulled a fast one on me ;)
My most recent code uses the new feature "procedures in records".
It seems fpc 2.2.0 does not support procedures in records.
I was hoping fpc 2.2.0 could replace Delphi 2007 compiler because Delphi
2007 compiler is malfunctioning...
I really like th
Solved.
fpc lul.pas -Mdelphi
Works.
fpc lul.pas -Mdelphi
Free Pascal Compiler version 2.2.0 [2007/09/09] for i386
Copyright (c) 1993-2007 by Florian Klaempfl
Target OS: Win32 for i386
Compiling lul.pas
15 lines compiled, 0.1 sec
Kinda strange, fpc does not support class ?
Wacky/weird.
Oh w
Hi,
The following simple and valid Delphi code does not compile with command:
fpc lul.pas
// *** Begin of Code ***
unit lul;
interface
type
Tpenis = class
private
public
end;
implementation
end.
// *** End of Code ***
// *** Begin of Output ***
fpc lul.pas
Free Pascal Compiler versio
007 om 01:33 uur [tijdzone +0100], schreef Skybuck
Flying:
Delphi Compiler is written in C/C++ ?!? (Closed source)
VCL/RTL is written in Delphi ! (Open Source)
No. The VCL is written in Object Pascal, yes.
Last time I checked object pascal was really old and Delphi added new
language featu
Delphi Compiler is written in C/C++ ?!? (Closed source)
VCL/RTL is written in Delphi ! (Open Source)
Bye,
Skybuck.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Oh the version I reported was for the IDE.
The compiler version is 2.0.4
Bye,
Skybuck.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Hello,
The following program compiled with free pascal 1.0.8 crashes:
type
Ta = 1..10;
Tb = 1..5;
var
a : Ta;
b : Tb;
begin
// a := 1; // uncommenting these lines leads to crash.
// b := 2;
a := b;
writeln( a );
writeln('test');
readln;
end.
(Also tested it in Delphi 2007, does not c
Delphi 2007 is not even beta, it's a bug, ripe to be squashed.
Use tab characters and you don't need a code convertor.
All you need to do is change tab widths to whatever you like.
Mixing tabs with spaces might make a mess.
Use tabs only is best.
If somebody really made a mess of things then
Never mind.
I see what the problem is.
GetMem is actually a kind of (probably magical) wrapper around a memory
manager.
The real GetMem is a function which returns a pointer.
As I already wrote, in Delphi an out of memory exception is raised.
The result value is thus never returned, which i
Hello,
Does GetMem care about the memory contents of the pointer variable ?
If not the parameter should be out instead of var to prevent the following
hint message:
GetMem( node, sizeof(Tnode) );
Y:\Free Pascal\Units\Technical\TnodeList\version 0.08 port to free
pascal\unit_TnodeList_versi
Lol, Please share if you really have something interesting to say.
I have used all kinds of Delphi versions and Delphi 2007 is nearly
unworkable for me for large projects.
Otherwise I wouldn't even be on this list !
Bye,
Skybuck.
___
fpc-pascal
Fair enough.
Interesting "improvement" over Delphi.
Though it's not much of an improvement ;)
There are other hint messages which are interesting though ;)
Another example:
vByte := vLongint; // warning possible loss of data/range check error.
I like compilers checking up on my code.
Maybe
Hello,
The following hint message is displayed, which I doubt is correct which
makes it interesting:
"project1.lpr(21,5) Hint: Local variable "b" does not seem to be
initialized"
Unfortunately the debugger is not working on my system, Lazarus does not
have a disassembly view so I can't see
Hello,
1. I also tried a gui application
2. I also tried using the gdb.exe with another fpc compiler install, which
doesn't crash but nothing happens.
FreePascal and Lazarus claim to be software development tools so far it's
FUD.
Ok that statement jumped the gun ;)
I ran the generated exe
igure out some ways
to market FreePascal and Lazarus.
We can start by extracting the subscription date of each user of our
mailing lists (I don't know
if it's possible). After that, it's easy to create statistics and take the
corresponding actions.
Leonardo.
--- Skybuck Flying &l
Well there are some things ofcourse wrong with Free Pascal:
1. First the name:
"Free"
Bussiness people don't believe in "Free".
2. Free Pascal Quality itself:
When I see simple things not working like:
Read or Readln or whatever, I run away screaming from Free Pascal ;) :)
3. It doesn't hav
Here is a suggestion:
Called it puma ! :)
Like the animal on the website.
Puma's are fast.
And that's a big adventage of Pascal/Delphi it compiles lightning fast
compared to C/C++ crap.
Bye,
Skybuck.
___
fpc-pascal maillist - fpc-pascal@list
Maybe I do enjoy it, however the small is beautifull kit is for 32 bit
windows programming.
I really want 64 bit windows programming.
So I guess it's not for me ;)
Bye,
Skybuck.
- Original Message -
From: "Graeme Geldenhuys" <[EMAIL PROTECTED]>
To: "FPC-Pascal users discussions"
S
discussions"
Sent: Thursday, July 26, 2007 10:51 AM
Subject: Re: [fpc-pascal] fpc-2.1.4.x86_64-win64.exe: -Mdelphi not working ?
On 26 Jul 2007, at 10:44, Skybuck Flying wrote:
I just reinstalled fpc-2.1.4.x86_64-win64.exe:
And this time I used the -Mdelphi compiler switch but it stil
Hello,
I found this link explaining some difference between AT&T and intel asm
syntax:
http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/gnu-assembler/i386-syntax.html
So I tried to add q behind mov maybe that was the problem...
Kinda strange that mov is allowed to compile.
Anyway
Hello,
This is my first attempt at writing AT&T asm code and also 64 bit asm code:
The output is supposed to be 2^64 - 1 but it displays 2^32-1.
Did I program a bug ?
Or is the compiler bugged ?
Maybe writeln bugged ?
What's wrong ?
// *** Begin of Code ***
program HelloWorld;
{$mode delp
- Original Message -
From: "Michael Van Canneyt" <[EMAIL PROTECTED]>
To: "FPC-Pascal users discussions"
Sent: Thursday, July 26, 2007 11:50 AM
Subject: Re: [fpc-pascal] fpc-2.1.4.x86_64-win64.exe: -Mdelphi not working ?
On Thu, 26 Jul 2007, Skybuck F
Ok,
I just reinstalled fpc-2.1.4.x86_64-win64.exe:
And this time I used the -Mdelphi compiler switch but it still gives
problems:
Y:\Free Pascal\Tests\Hello World>ppcrossx64 HelloWorld.pas -Mdelphi
HelloWorld.pas(9,10) Error: Unknown identifier "EAX"
HelloWorld.pas(9,12) Error: Unknown identi
Yes, but the default syntax is AT&T, not Intel. I assume you are coming
from a Delphi background, so you can probably best solve this and many
future issues you would otherwise encounter by adding {$mode delphi} at
the top of all of your source files (or compile with - Mdelphi).
Jonas
Hello,
I downloaded and installed:
fpc-2.1.4.x86_64-win64.exe (beta)
I wrote a little Hello World program to test the compiler:
var
test : int64;
begin
writeln('Hello Free Pascal World !');
asm
mov eax, ecx
end;
writeln('Test: ', test );
readln;
end.
I get these errors:
Y:\Free Pascal\T
Hello,
I have a (64 bit) executable.
I want to read the instructions directly from the executable.
I assume this is possible ? I assume the instructions are not encrypted or
otherwise "garbled" ?
How can one figure out where the instructions start in the executable ? (The
instruction byte e
85 matches
Mail list logo