[fpc-devel] ccharset.pas, charset.pas and strings/unicode ?

2011-04-06 Thread Skybuck Flying
Hello, I am having momentarily confusion about the situation with ccharset.pas and charset.pas and strings, ansistrings and unicode in general... ?!? So some questions about this: I in particularly do not understand the following uses clausule: {$ifdef VER2_2}ccharset{$else

Re: [fpc-devel] Adding a redcode assembler to Free Pascal Compiler

2011-04-06 Thread Michael Schnell
On 04/05/2011 04:21 PM, Hans-Peter Diettrich wrote: Of course every platform needs a RTL, at least for memory allocation, basic I/O and probably for file handling. Thread handling (e.g. threadvars) is another example. Using libc (in Linux) prevents doing ASM or arch depending code in the

Re: [fpc-devel] ccharset.pas, charset.pas and strings/unicode ?

2011-04-06 Thread Michael Schnell
On 04/06/2011 08:30 AM, Skybuck Flying wrote: In the latest Delphi versions string is now considered a Unicode string. The realization of something like this is done in a dedicated new string branch of the svn called cpstrnew. AFAIK, it's still far from usable. -Michael

Re: [fpc-devel] Changes in Makefile-system

2011-04-06 Thread Sergei Gorelkin
02.04.2011 1:15, Joost van der Sluis пишет: Hi all, I've just committed a change in the Makefiles for the fcl-web package. The Makefile now calls fpmake to build and install the package. Another disaster occurs when I try to use the same source tree from different OSes. Say first I build in

Re: [fpc-devel] Changes in Makefile-system

2011-04-06 Thread Joost van der Sluis
On Wed, 2011-04-06 at 12:28 +0400, Sergei Gorelkin wrote: 02.04.2011 1:15, Joost van der Sluis пишет: Hi all, I've just committed a change in the Makefiles for the fcl-web package. The Makefile now calls fpmake to build and install the package. Another disaster occurs when I try to use

Re: [fpc-devel] helper feature finished

2011-04-06 Thread Paul Ishenin
06.04.2011 2:20, Sven Barth пишет: On 05.04.2011 17:34, Sven Barth wrote: - Is ibsymtableoptions needed? Couldn't be the value just be written to the ppu without a new entry? It didn't work the first time I added that, but it might be because of other errors I had at that time. I'll recheck

Re: [fpc-devel] Changes in Makefile-system

2011-04-06 Thread Joost van der Sluis
On Sun, 2011-04-03 at 03:51 +0400, Sergei Gorelkin wrote: On 02.04.2011 01:15, Joost van der Sluis wrote: Hi all, I've just committed a change in the Makefiles for the fcl-web package. The Makefile now calls fpmake to build and install the package. I'm unable to run the test suite with

Re: [fpc-devel] Changes in Makefile-system

2011-04-06 Thread Sergei Gorelkin
06.04.2011 12:56, Joost van der Sluis пишет: Another disaster occurs when I try to use the same source tree from different OSes. Say first I build in Linux, it successfully creates the '/packages/fcl-web/fpmake' executable. After that building from Windows fails since it attempts to run the

Re: [fpc-devel] Recent changes to TField.SetData

2011-04-06 Thread LacaK
Small optimalization use dsWriteModes instead of fixed set: - if not (State in [dsEdit, dsInsert, dsFilter, dsCalcFields]) then //here should be IMO also dsNewValue + if not (FDataSet.State in dsWriteModes) then DatabaseErrorFmt(SNotEditing,[FDataSet.Name],FDataSet);

Re: [fpc-devel] helper feature finished

2011-04-06 Thread Sven Barth
Am 06.04.2011 13:35, schrieb Florian Klaempfl: Am 05.04.2011 17:34, schrieb Sven Barth: Am 05.04.2011 17:06, schrieb Florian Klaempfl: Am 05.04.2011 04:27, schrieb Paul Ishenin: I think your branch should be reviewed either by Florian I did a quick review and found nothing important, only

Re: [fpc-devel] ccharset.pas, charset.pas and strings/unicode ?

2011-04-06 Thread Sven Barth
Am 06.04.2011 08:30, schrieb Skybuck Flying: Hello, I am having momentarily confusion about the situation with ccharset.pas and charset.pas and strings, ansistrings and unicode in general... ?!? So some questions about this: I in particularly do not understand the following uses clausule:

Re: [fpc-devel] Compiler subfolders: i386, x86

2011-04-06 Thread Hans-Peter Diettrich
Skybuck Flying schrieb: I have a little question about these subfolders in the compiler folder, they are called: 'i386' and 'x86' What are these folders, they seem samiliar ? The x86 targets are splitted into 4 directories, AFAIR i386 for 32 bit, ia64 for Intel IA-64 architecture

Re: [fpc-devel] Building compiler, rtl, host, target... (cross compiling)

2011-04-06 Thread Sven Barth
Wow, wow, wow... you are indeed a bit confused here. On 06.04.2011 21:54, Skybuck Flying wrote: Hello, First of all I would like to write that I failed to compile the RTL of Free Pascal so that might be adding a little bit too the confusion. (Just simple i386/x86 tests to see if the sources

Re: [fpc-devel]Building compiler, rtl, host, target... (cross compiling)

2011-04-06 Thread Žilvinas Ledas
Hi, maybe some basic info could help you understand some things: http://wiki.lazarus.freepascal.org/Cross_compiling Regards Žilvinas On 2011-04-06 23:19, Skybuck Flying wrote: Hello, ... Bye, Skybuck. ___ fpc-devel maillist -

[fpc-devel] External assemblers (also modular discussion about free pascal compiler)

2011-04-06 Thread Skybuck Flying
Hello, Perhaps some last silly questions about external assemblers. First I'd like to say that I saw some tutorial where the compiler itself produced some form of assembly output in text... probably real assembly... So that's kinda interesting to output text this makes it flexible for other

Re: [fpc-devel] External assemblers (also modular discussion about free pascal compiler)

2011-04-06 Thread Sven Barth
On 06.04.2011 22:46, Skybuck Flying wrote: Hello, Perhaps some last silly questions about external assemblers. First I'd like to say that I saw some tutorial where the compiler itself produced some form of assembly output in text... probably real assembly... So that's kinda interesting to

[fpc-devel] Possibly bug spotted in scanner.pas

2011-04-06 Thread Skybuck Flying
Around line 1120: else if is_char(constdef) then begin read_factor:=char(qword(value.valueord)); factorType:= [ctetString]; end valueord seems to be type casted towards an

Re: [fpc-devel] Adding a new assembler to Free Pascal Compiler

2011-04-06 Thread Skybuck Flying
Hello, (This posting/reply is mostly ment for: Hans-Peter Diettrich) I saw you mentioned you are working on the front end part of the compiler. I also saw you want to introduce either syntaxes or perhaps even languages (?) I guess you want to experiment with alternative syntaxes or

Re: [fpc-devel] Adding a new assembler to Free Pascal Compiler (language features supported/not supported options)

2011-04-06 Thread Skybuck Flying
Here is one little idea which might be obvious: 1. The assembler could notify to the rest of the system like parser or symantic checker which languages features are supported and which are not supported by the assembler. This way certain language elements of the language could be turned off.

Re: [fpc-devel] Adding a new assembler to Free Pascal Compiler

2011-04-06 Thread Hans-Peter Diettrich
Skybuck Flying schrieb: (This posting/reply is mostly ment for: Hans-Peter Diettrich) I saw you mentioned you are working on the front end part of the compiler. I also saw you want to introduce either syntaxes or perhaps even languages (?) Both, but this project is OT here. Have a look

Re: [fpc-devel] Building compiler, rtl, host, target... (cross compiling)

2011-04-06 Thread Hans-Peter Diettrich
Skybuck Flying schrieb: First of all free pascal compiler is not a multi-target cross compiler but it is a dual-target cross compiler (dual meaning host and target can be different ;)) FPC is a single target cross compiler. cross indicates that the target can be different from the host

Re: [fpc-devel] Building compiler, rtl, host, target... (cross compiling)

2011-04-06 Thread Hans-Peter Diettrich
Skybuck Flying schrieb: So this is my biggest question and hunch: At some point during this whole step/phase the RTL needs to be switched/swapped with the new RTL... No swapping required. The host-RTL is linked *into* the compiler itself, the target-RTL is used (read, compiled) *by* the

Re: [fpc-devel] ccharset.pas, charset.pas and strings/unicode ?

2011-04-06 Thread Skybuck Flying
Hmm ok, so here is a little theoretical/hypothetical question for you to think and guess about ;): Suppose some kind of weird dissaster happens, like tsunami in japan... all our computers are destroyed... What remains are the free pascal source codes. What remains is a object pascal