fpc-devel · 2011-04
- Script Language, TCL Update2
Hi! I want to equip a program with a command line and plan to use a real scripting language to interpret the user input. I've looked around a bit (e.g. in the mailing…
- Default IntToStr operator for '+' symbol.4
I am not sure, maybe we discussed this before, maybe not. I am getting quite sick of having to write IntToStr all the fricking time like so: begin s := IntToStr(X) + ' '…
- Unicode resource strings again4
In 2008 there was a thread about FPC and Unicode resoure strings with the conclusion that FPC does not support them. Has the situation changed in the meantime? Does…
- type pointer to record before record.6
In free pascal/pascal/delphi it's necessary to declare a pointer to a record, which is to be used inside the record to point to itself, before the record itself without…
- fpc modifiers8
First i will note that what i state is not an error or bug in free pascal, but it is somehow unclean implemented. The decision for modifiers like cvar or cdecl to be an…
- {$I %LINE%} and friends7
There is one problem with {$I %LINE%} and his friends, which restricts the use of these directives. They are expanded even inside a macro immediately, so, if you define…
- __LINE__ and __FILE__ macros7
Best regards to all developers, is it somehow possible to access the line number and file information during the compilation? This would be nice for debugging purposes.…
- trash after program end. => no warning, no error3
Is that intended? If you have anything following after the final "end." (with a dot), then it is silently ignore, no error, no warning. program Project1; begin end. xxx…
- registers used in function call, any rule?4
Not sure were I got my original info from... , but at current lazarus-ide (debugger) assumes that (on 64 bit) arguments (to fpc_raiseexceptions) are passed in RDI, RSI,…
- Recent changes to TField.SetData18
This fix http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/packages/fcl-db/src/base/fields.inc?r1=17199&r2=17220 fixes mising call to TField.Validate (before data are…
- Can't build FPC what can be a reason?16
Hello, FPC developers' list. I can't build FPC today. Executable is always differ by one byte with the previous and cmp don't let me continue after make cycle:…
- intptr_t and Linux5
I see that intptr_t type is defined for all supported Unix that are not Linux. Is there are reason why it was never declared for Linux ? stdint.h is define it like so:…
- Trying to add "sky" target based on "arm" target. Internal error 20041212023
I copied "arm" folder to "sky" folder to try and use it as basis for adding a new target to free pascal. I also used lazarus 9.30 which builds everything fine. I also…
- Re: Trying to add "sky" target based on "arm" target. (how to set custom target conditional ?)1
I think I got a working to a certain point... the error is gone... it now probably needs an RTL for "sky". I am still a bit confused about the difference between "i_"…
- Re: Extended type28
On Windows 64-bit you must not use the x87 FPU, because Microsoft wants it so. Thus on Win64 Extended=Double. On other x86_64 based operating systems the state might be…
- GetEnumValue result type1
Hi, I'm having some trouble if I want to pass an enumerated type as a function parameter, when I get that type with GetEnumValue. For example, if I have this type:…
- How are short/ansi strings implemented ?2
I've been wondering lately a little bit how the basic types are implemented. Now byte, integer and so forth seem easy, these can be directly translated by the assemblers…
- arch x64 - type of expresion result0
Hi I have program procedure fun(a : integer);overload; begin write('integer ',a); end; procedure fun(a:int64);overload; begin write('int64 ',a); end; var w : word; begin…
- "helper" feature finished31
Hello together! Today I have run the final tests on the helper branch and I'm satisfied with their results, thus I'd like you to review and hopefully merge my work. The…
- Writeable consts in delphi mode1
This is first time that I need writeable consts in my app *delphi mode*, so tried {$J+} if Something then MyConst := 0 else MyConst := 100; {$J-} and {$WRITEABLECONST ON}
- Announcement: Free Pascal Compiler Delphi XE Port Project21
I have finished with Phase 1 of the Free Pascal Compiler Delphi XE Port Project: http://www.skybuck.org/FreePascalCompilerDelphiXEPortProject/ All code with porting…
- Android native application with local webserver7
Hello I finish first stage to move my webapp as native Android application. Its consists one java file with declaration webWiew, and all rest, written in FPC, is build…
- RFC: customvariant handling in variants.pp and fmtbcd.pp11
I would like ask for your opinion in this case. I found, that in this sample program is raised "Invalid variant ..." var bcd1: TBCD; v,v1: variant; s: string; begin…
- How to get FPC to generate floating point instructions for ARM?12
I am trying to understand how to work with the various floating point options available for FPC when running on ARM under Linux. I'm not to familiar with all this so…
- Delphi replacement for get_caller_addr0
These two functions are being used for i386: // *** Skybuck: Fix Needed (porting issue 582) function get_frame:pointer;assembler;nostackframe;{$ifdef…
- fcl-web compilation problems summary4
WinXP 32bit, latest FPC SVN trunk, everything is default, not cross compiling 1. "make all" creates all the units properly, into the right places. 2. "make install" gets…
- fpweb is not showing the exception message7
I was playing today with fpweb a little, and found a simply reproducible minor problem. When one creates a new CGI or FCGI application and creates a simple default…
- Debugging FCGI applications1
How do we debug an FCGI application from within Lazarus? The RUN function is disabled in the RUN menu, so I can not start it up after putting some break points in the…
- Is it ok to commit SSE2 assembler code for x86_64?1
AFAIK every 64-bit capable x86 has at least SSE2 available, so SSE2 code is safe to be the default one (while code for SSE3 and higher requires CPUID checks). Still, I…
- Register allocation question12
I wonder whether it is possible to assign a priority (or order) of registers for FPC's register allocator. Currently registers are allocated in the order of ordinals…
- fcl-web is not copied by make install7
Is it intentional that the fcl-web package is not copied when "make install" is called? "make all" compiles the units properly, they are just not copied by "make…
- FreeBSD 64bits SVN error2
Hi, I'm trying to compile from trunk on a FreeBSD x86_64 box, and I'm getting this error: gmake clean all: ... thread.inc(411,10) Warning: Function result does not seem…
- Building compiler, rtl, host, target... (cross compiling)18
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…
- Re: Do RTL unit names matter for the free pascal compiler ?0
I have little bit good news for Delphi: By adding pp to extension list somewhere in the options it's possible to compile pp files as well. At first I thought it was…
- Potentially a slight little overflow issue in nx86mat.pas0
There could be a slight little overflow issue in unit "nx86mat.pas" Line 174: current_asmdata.asmlists[al_typedconsts].concat(tai_const.create_32bit(-(1 shl 31)));…
- TFPHashList and FindIndexOf0
After some debugging into a problem I was finding, I determined that TFPHashList.FindIndexOf only works of the Key has non-nil data associated with it. In other words:…
- ccharset.pas, charset.pas and strings/unicode ?4
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…
- External assemblers (also modular discussion about free pascal compiler)2
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…
- Possibly bug spotted in scanner.pas1
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…
- Re: Oddity: Longint being converted automatically to int64 and then assignment/conversion operator used/applied for/to structure variable...(i386) branch (2.4.2)0
It seems wrong unit was being used... now I have corrected it and Delphi XE seems to work as well... so no extra implicit conversion needed. So I guess Delphi also…
- Oddity: Longint being converted automatically to int64 and then assignment/conversion operator used/applied for/to structure variable...(i386) branch (2.4.2)0
I am currently inspecting the following compiler unit of 2.4.2 branch/release ninl.pas: line 1371: enum:=tenumsym(tenumdef(def).firstenum); line 1372: …
- Adding a new assembler to Free Pascal Compiler9
I would like to experiment with the pascal programming language at the binary/assembler/machine level. For example compile pascal sources to virtual machine instruction…
- Re: ccharset.pas, charset.pas and strings/unicode ? (>< symdif operator)0
As I was busy with the free pascal compiler source codes I came across an unfamiliar operator for me: >< ( It's in nflw.pas at line 830: {Symdif operator, in case you…
- Changes in Makefile-system22
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. It's a first test, so please try…
- Compiler subfolders: i386, x863
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 ? (cpubase.pas seems…
- Adding a redcode assembler to Free Pascal Compiler4
I kinda forget to mention something in my previous posting to this mailing list, but perhaps it should go into a seperate thread anyway: As I mentioned in the previous…
- make error in fcl-web8
(w32 / vista) I tried to recompile fpc trunk, it starts up fine, until it comes to fcl-web. I copied the last lines of output to the end of the mail Not sure about the…
- OpenCL/Cuda/PTX Support ?!?1
I tried searching the archives manually but this is a bit time consuming, I also tried the search function on the website but it seems broken. Anyway my question is the…
- Delphi 64bit compiler sneak peak available now0
https://forums.codegear.com/thread.jspa?threadID=52117&tstart=0 We can check it out and do some comparisons now.
- Behavior of conversion between vardate variants and string in fpc and delphi5
As pointed in bug http://bugs.freepascal.org/view.php?id=19075 converting from vardate variants (variants with TDateTime values) to string is done differently in Delphi…
