× Lab CT Version, news, test results, new features request and suggestions

Question CT LAB ver 5.80

  • Sternas Stefanos
  • Sternas Stefanos's Avatar Topic Author
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
4 years 4 months ago #9430 by Sternas Stefanos
Replied by Sternas Stefanos on topic CT LAB ver 5.80
Please Sir
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
  • Visitor
4 years 4 months ago #9431 by Vbxler
Replied by Vbxler on topic CT LAB ver 5.80
I will try to create a small example.

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar Topic Author
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
4 years 4 months ago #9432 by Sternas Stefanos
Replied by Sternas Stefanos on topic CT LAB ver 5.80
OK

PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

More
4 years 4 months ago #9433 by Bram van Vliet
Replied by Bram van Vliet on topic CT LAB ver 5.80
Hello,

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
  • Sternas Stefanos's Avatar Topic Author
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
4 years 4 months ago #9435 by Sternas Stefanos
Replied by Sternas Stefanos on topic CT LAB ver 5.80
Thanks Sir
we will check this

PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

  • Vbxler
  • Visitor
  • Visitor
4 years 4 months ago - 4 years 3 months ago #9437 by Vbxler
Replied by Vbxler on topic CT LAB ver 5.80
The error from post # 9427 was, as expected, inside the project and not in CT.

Thanks for your help!
Last edit: 4 years 3 months ago by Vbxler.

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar Topic Author
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
4 years 3 months ago #9464 by Sternas Stefanos
Replied by Sternas Stefanos on topic CT LAB ver 5.80
We release LAB CodeTyphon Studio ver 5.8.0 Revision 005730
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.

More
4 years 3 months ago #9469 by user01
Replied by user01 on topic CT LAB ver 5.80
does it fix broken cross compilation win32 to linux x86_64?

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar Topic Author
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
4 years 3 months ago #9470 by Sternas Stefanos
Replied by Sternas Stefanos on topic CT LAB ver 5.80
NO yet Sir
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
  • Sternas Stefanos's Avatar Topic Author
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
4 years 3 months ago - 4 years 3 months ago #9483 by Sternas Stefanos
Replied by Sternas Stefanos on topic CT LAB ver 5.80
We release LAB CodeTyphon Studio ver 5.8.0 Revision 005735
changes at first post
Please, test and report ...

PilotLogic Architect and Core Programmer
Last edit: 4 years 3 months ago by Sternas Stefanos.

Please Log in or Create an account to join the conversation.

More
4 years 3 months ago - 4 years 3 months ago #9487 by gulyone
Replied by gulyone on topic CT LAB ver 5.80
problem building the IDE from inside the IDE

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
Last edit: 4 years 3 months ago by gulyone.

Please Log in or Create an account to join the conversation.

  • usbdoo
  • Visitor
  • Visitor
4 years 3 months ago - 4 years 3 months ago #9492 by usbdoo
Replied by usbdoo on topic CT LAB ver 5.80
CT 5.8 AND CT 5.7
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}
Last edit: 4 years 3 months ago by usbdoo.

Please Log in or Create an account to join the conversation.

  • zeljko
  • Away
  • Junior Boarder
  • Junior Boarder
More
4 years 3 months ago #9494 by zeljko
Replied by zeljko on topic CT LAB ver 5.80
I suggest deleting Compile,
blank function and procedure...
procedure TForm1.Button1Click(Sender: TObject);
begin

end;
The following user(s) said Thank You: usbdoo

Please Log in or Create an account to join the conversation.

More
4 years 3 months ago - 4 years 3 months ago #9496 by Jos Wegman
Replied by Jos Wegman on topic CT LAB ver 5.80
This is optional.
Tools -> Options ->Editor -> Completion and hints -> Auto remove empty methods

I think that what you request is already there, If I understand you correctly.
Last edit: 4 years 3 months ago by Jos Wegman.
The following user(s) said Thank You: zeljko, usbdoo

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar Topic Author
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
4 years 3 months ago - 4 years 3 months ago #9511 by Sternas Stefanos
Replied by Sternas Stefanos on topic CT LAB ver 5.80

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
Last edit: 4 years 3 months ago by Sternas Stefanos.

Please Log in or Create an account to join the conversation.

More
4 years 3 months ago - 4 years 3 months ago #9512 by user01
Replied by user01 on topic CT LAB ver 5.80
Can you say which file was actually broken? My project needs much more libraries. Copying them from Ubuntu brings error.
Last edit: 4 years 3 months ago by user01.

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar Topic Author
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
4 years 3 months ago - 4 years 3 months ago #9513 by Sternas Stefanos
Replied by Sternas Stefanos on topic CT LAB ver 5.80
Sir
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
Last edit: 4 years 3 months ago by Sternas Stefanos.

Please Log in or Create an account to join the conversation.

More
4 years 3 months ago #9517 by Bram van Vliet
Replied by Bram van Vliet on topic CT LAB ver 5.80
Hello sir,

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
  • Sternas Stefanos's Avatar Topic Author
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
4 years 3 months ago #9518 by Sternas Stefanos
Replied by Sternas Stefanos on topic CT LAB ver 5.80
Thanks Sir
we will try to fix this

PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

More
4 years 3 months ago #9535 by Bram van Vliet
Replied by Bram van Vliet on topic CT LAB ver 5.80
Hello Sir,

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.