Question CT LAB ver 5.80
- Sternas Stefanos
-
Topic Author
- Offline
- Moderator
-
- Ex Pilot, M.Sc, Ph.D
can you give us more info ?
or
a sample project with the problem ?
PilotLogic Architect and Core Programmer
Please Log in or Create an account to join the conversation.
- Vbxler
- Visitor
-
Please Log in or Create an account to join the conversation.
- Sternas Stefanos
-
Topic Author
- Offline
- Moderator
-
- Ex Pilot, M.Sc, Ph.D
Please Log in or Create an account to join the conversation.
- Bram van Vliet
- Offline
- New Member
-
- Posts: 13
- Thank you received: 0
The IDE search and replace dialog at the moment appears to default the "Search scope" setting to "Global" instead of "Selected text". Don't know if its a feature or a bug but it bit me more than once replacing a lot more than intended...
I just upgraded to the lab version from 04-04-2016 and my OS is Mint 17.3 Cinnamon x64.
Thanks for all the great work!
Please Log in or Create an account to join the conversation.
- Sternas Stefanos
-
Topic Author
- Offline
- Moderator
-
- Ex Pilot, M.Sc, Ph.D
we will check this
PilotLogic Architect and Core Programmer
Please Log in or Create an account to join the conversation.
- Vbxler
- Visitor
-
Thanks for your help!
Please Log in or Create an account to join the conversation.
- Sternas Stefanos
-
Topic Author
- Offline
- Moderator
-
- Ex Pilot, M.Sc, Ph.D
changes at first post
Please, test, report and have fun...
PilotLogic Architect and Core Programmer
Please Log in or Create an account to join the conversation.
- user01
- Offline
- Junior Member
-
- Posts: 29
- Thank you received: 3
Please Log in or Create an account to join the conversation.
- Sternas Stefanos
-
Topic Author
- Offline
- Moderator
-
- Ex Pilot, M.Sc, Ph.D
we try to fix and this problem
PilotLogic Architect and Core Programmer
Please Log in or Create an account to join the conversation.
- Sternas Stefanos
-
Topic Author
- Offline
- Moderator
-
- Ex Pilot, M.Sc, Ph.D
changes at first post
Please, test and report ...
PilotLogic Architect and Core Programmer
Please Log in or Create an account to join the conversation.
- gulyone
- Offline
- Junior Member
-
- Posts: 98
- Thank you received: 4
windows 7, 64bits IDE (32bits IDE rebuilds PERFECT)
when I rebuild my optimized IDE with these options
-g- -O2
-CpCOREI -OpCOREI -CfSSE64
IDE rebuild process is OK
if I do replace -O2 with -O3
compiler fails randomly after some packages
32bits IDE -O3 -CpPENTIUMM -OpPENTIUMM -CfSSE
all is OK no problem, only -O3 on 64bits IDE
Please Log in or Create an account to join the conversation.
- usbdoo
- Visitor
-
DEBIAN 8 64
file:
/usr/local/codetyphon/binLibraries/arm-linux-Raspbian2/arm.inc
Problem is line 142
fmrrd r0, r1, d0
arm.inc(142,2) Error: Asm: Opcode fmrrd not in table
{ implementation of the arm procedure call standard for function calls in pascal script
Copyright (c) 2008 by Henry Vermaak (henry.vermaak@gmail.com)
Support for EABI baseline and EABI hardfloat (c) 2015
modulo7 ( https://github.com/modulo7 )
Peter Michael Green ( plugwash@p10link.net )
todo: add wince support
notes:
most arm cpus don't allow unaligned access. by default (?) the linux kernel
is set up to try and correct unaligned access, which can lead to strange behaviour.
to turn this off, try (as root):
echo 4 > /proc/cpu/alignment
if you have an alignment problem, you will now get a crash with a backtrace like this:
(make sure you compile with -O- -gl)
An unhandled exception occurred at $0006C014 :
EBusError : Bus error or misaligned data access
$0006C014 PROCESSREPEAT, line 9670 of upscompiler.pas
$00068AAC TPSPASCALCOMPILER__PROCESSSUB, line 10459 of upscompiler.pas
$0007D0B4 TPSPASCALCOMPILER__COMPILE, line 11704 of upscompiler.pas
you can fix this by using the "unaligned" keyword around the pointer operation.
search for occurances of "unaligned" to see how this is done,
(use $ifdef FPC_REQUIRES_PROPER_ALIGNMENT).
for more information, visit:
http://www.aleph1.co.uk/oldsite/armlinux/book/afaq.html
}
const
rtINT = 0;
rtINT64 = 1;
rtFLOAT = 2;
type
Trint = array[1..4] of dword;
{$IFDEF FPC_abi_eabihf}
Trfloat = record case byte of
1:(s:array[0..15] of single);
2:(d:array[0..7] of double);
end;
{$ELSE}
Trfloat = array[1..4] of double;
{$ENDIF}
{$goto on}
{ define labels }
label
stack_loop,
load_regs,
asmcall_end,
int_result,
int64_result,
float_result;
{ call a function from a pointer }
{ resulttype: 0 = int, 1 = int64, 2 = float }
function armasmcall(constref rint: Trint;constref rfloat: Trfloat; proc, stack: pointer; stacksize, resulttype: integer): int64; assembler; nostackframe;
asm
mov r12, r13
stmfd r13!, {r4, r5, r6, r7, r8, r9, r10, r11, r12, r14, r15}
sub r11, r12, #4
mov r4, #80 (* space for preserved registers and parameters *)
ldr r5, [r11, #4] (* stacksize we need for subroutine *)
add r4, r4, r5
sub r13, r13, r4 (* create stack space *)
{$ifdef FPC_abi_eabi}
(* EABI requires 8 byte aligned stack pointer for procedure calls, ensure alignment. *)
bic r13, r13, #7
{$endif}
(* store parameters on stack *)
str r0, [r11, #-44] (* rint *)
str r1, [r11, #-48] (* rfloat *)
str r2, [r11, #-52] (* proc *)
str r3, [r11, #-56] (* stack *)
ldr r0, [r11, #4]
str r0, [r11, #-60] (* stacksize *)
ldr r0, [r11, #8]
str r0, [r11, #-64] (* resulttype *)
(* store params for sub-routine that don't fit into r0-r3 at start of stack *)
ldr r0, [r11, #-60] (* stacksize *)
cmp r0, #0
beq load_regs (* skip if no stack *)
mov r1, r13 (* this points to the bottom now *)
ldr r2, [r11, #-56] (* stack pointer *)
stack_loop:
ldmia r2!, {r4} (* get stack + update pos *)
stmia r1!, {r4} (* store stack + update pos *)
subs r0, r0, #4
bne stack_loop
load_regs:
(* load general regs *)
ldr r4, [r11, #-44] (* rint *)
ldr r0, [r4]
ldr r1, [r4, #4]
ldr r2, [r4, #8]
ldr r3, [r4, #12]
{$ifdef FPUFPA}
(* load float regs *)
ldr r4, [r11, #-48] (* rfloat *)
ldfd f0, [r4]
ldfd f1, [r4, #8]
ldfd f2, [r4, #16]
ldfd f3, [r4, #24]
{$endif}
{$ifdef FPC_abi_eabihf}
(* load float regs *)
ldr r4, [r11, #-48] (* rfloat *)
fldmiad r4, {d0,d1,d2,d3,d4,d5,d6,d7}
{$endif}
(* branch to the proc pointer *)
ldr r4, [r11, #-52]
{$ifdef FPC_abi_eabi}
blx r4
{$else}
mov r14, r15
mov r15, r4
{$endif}
ldr r4, [r11, #-64] (* get resulttype *)
cmp r4, #1
ble asmcall_end
{$ifdef FPUFPA}
stfd f0, [r11, #-72]
ldr r0, [r11, #-72]
ldr r1, [r11, #-68]
{$endif}
{$IFDEF FPC_abi_eabihf}
//fmrrd r0, r1, d0
{$endif}
{$IFDEF FPC_abi_eabihf}
fmrrd r0, r1, d0 //not compile raspberry pi2
{$endif}
{$IFDEF FPC_abi_eabihf}
// fmrrd r0, r1, d0 // This compile
{$endif}
Please Log in or Create an account to join the conversation.
- zeljko
- Offline
- Junior Member
-
blank function and procedure...
procedure TForm1.Button1Click(Sender: TObject);
begin
end;
my web: www.zeljus.com
Pandroid: github.com/zeljkoc/pandroid
PandroidPackage: github.com/zeljkoc/PandroidPackage
Please Log in or Create an account to join the conversation.
- Jos Wegman
- Offline
- New Member
-
- Posts: 8
- Thank you received: 4
Tools -> Options ->Editor -> Completion and hints -> Auto remove empty methods
I think that what you request is already there, If I understand you correctly.
Please Log in or Create an account to join the conversation.
- Sternas Stefanos
-
Topic Author
- Offline
- Moderator
-
- Ex Pilot, M.Sc, Ph.D
user01 wrote: does it fix broken cross compilation win32 to linux x86_64?
Sir, we fix CrossBuild from Windows32 to Linux64.
The problem was at OS libraries for Linux64, after FPC SVN trunk updates.
Please, download the new OS libraries for Linux64 from here OR
with CodeTyphon Center => Download OS Libraries Action
and have fun
PilotLogic Architect and Core Programmer
Please Log in or Create an account to join the conversation.
- user01
- Offline
- Junior Member
-
- Posts: 29
- Thank you received: 3
Please Log in or Create an account to join the conversation.
- Sternas Stefanos
-
Topic Author
- Offline
- Moderator
-
- Ex Pilot, M.Sc, Ph.D
I think are:
crtbeginS.o
crtendS.o
crti.o
crtn.o
ld-linux-x86-64.so.2
libc.so
libc.so.6
libc_nonshared.a
from Debian 8.4
PilotLogic Architect and Core Programmer
Please Log in or Create an account to join the conversation.
- Bram van Vliet
- Offline
- New Member
-
- Posts: 13
- Thank you received: 0
I have a feature request that "Run without debugger" also passes the command line parameters as setup in the dialog from menu "Run > Run parameters" field "Command line parameters"
Thanks!
Please Log in or Create an account to join the conversation.
- Sternas Stefanos
-
Topic Author
- Offline
- Moderator
-
- Ex Pilot, M.Sc, Ph.D
we will try to fix this
PilotLogic Architect and Core Programmer
Please Log in or Create an account to join the conversation.
- Bram van Vliet
- Offline
- New Member
-
- Posts: 13
- Thank you received: 0
I encountered a (possible) regression. When not using the embedded form designer the form position and size is reset when using F12 (classic key mapping) to toggle between unit and form on Linux Mint 17.3 x64. On Windows 7 this functions correctly on both 32 and 64 bit version.
Thank you and your team for all the hard work!
Please Log in or Create an account to join the conversation.