florian
e033269deb
* patch by Christo Craus to reorder the avr controllers for better overview, resolves #36662
...
git-svn-id: trunk@44124 -
2020-02-06 21:10:09 +00:00
florian
7d283f530e
* patch by Christo Crause: fix startup code for avrtiny subarch, resolves #36650
...
git-svn-id: trunk@44100 -
2020-02-02 19:18:39 +00:00
florian
00214406bc
+ patch by Christo Crause: Support for attiny10x controllers, resolves #36645
...
git-svn-id: trunk@44081 -
2020-02-01 15:54:57 +00:00
florian
9d91d680fb
* patch by Christo Crause: support for megaAVR 0 and tinyAVR 0/1, #36616 , part 3/3
...
git-svn-id: trunk@44038 -
2020-01-26 14:35:32 +00:00
florian
7892e3f7b7
* patch by Christo Crause: support for megaAVR 0 and tinyAVR 0/1, #36616 , part 2/3
...
git-svn-id: trunk@44037 -
2020-01-26 14:35:29 +00:00
florian
5aaf68b088
* fix compilation of arm-embedded, resolves #36626
...
git-svn-id: trunk@44034 -
2020-01-25 14:59:28 +00:00
florian
3cd4168ab3
+ introduce TOSTimestamp
...
git-svn-id: trunk@44033 -
2020-01-25 14:14:41 +00:00
florian
7b4292c94e
* patch by Robert Roland to support the RaspberryPi 2 as a bare metal embedded target, resolves #35236
...
git-svn-id: trunk@44027 -
2020-01-23 21:14:49 +00:00
florian
d2a059bd02
* patch by Christo Crause: avrtiny26 controller is not subarch avr25 but avr2, resolves #36620
...
git-svn-id: trunk@44021 -
2020-01-22 20:41:24 +00:00
florian
3ab8830b83
* patch by Christo Crause: Correct subarch for avrtiny series in compiler, resolves #36619
...
git-svn-id: trunk@44020 -
2020-01-22 20:34:43 +00:00
florian
69956cd97a
* fix compilation on several OSes after r44010
...
git-svn-id: trunk@44013 -
2020-01-21 21:50:37 +00:00
florian
01302bc47d
* subroutines working with an OS dependend time stamp use an int64 now, so the 2038 problem
...
on unixes can be tackled
git-svn-id: trunk@44010 -
2020-01-21 20:59:20 +00:00
florian
799ea31a5f
* AVR: due to recent fixes, EXCLUDE_COMPLEX_PROCS is not needed anymore
...
git-svn-id: trunk@43997 -
2020-01-19 18:04:59 +00:00
florian
28391e04bc
+ AVR: initial support of the avrtiny architecture in the rtl
...
git-svn-id: trunk@43988 -
2020-01-19 15:55:25 +00:00
Jeppe Johansen
2678522db5
- RISC-V: Add controller types for common RV32 MCUs.
...
- Adds initial controller units for these MCUs.
Code contributed by Michael Ring
git-svn-id: trunk@43935 -
2020-01-13 22:54:26 +00:00
pierre
a09e40945c
Regenerate all Makefile's after commit #43472
...
git-svn-id: trunk@43478 -
2019-11-15 14:47:02 +00:00
pierre
912bc1e65b
+ Add math unit dependency to types$(PPUEXT) rule.
...
* Fix missing close-brace in several types$(PPUEXT) rules.
git-svn-id: trunk@43042 -
2019-09-19 20:49:12 +00:00
Jeppe Johansen
05c4f45596
* Fix exitcode handling for avrsim target. Patch by Christo Crause
...
git-svn-id: trunk@42940 -
2019-09-07 20:21:16 +00:00
pierre
5ed7bd35df
Update all trunk/fpcsrc Makefile's after commit 42749
...
git-svn-id: trunk@42750 -
2019-08-20 15:58:10 +00:00
svenbarth
c26348a3dd
* follow up to r42457: FreeTerminateProcs needs to be called before DoneExceptions just in case an exception is triggered due to a corrupted list
...
git-svn-id: trunk@42461 -
2019-07-20 08:41:59 +00:00
svenbarth
176a63b67b
* fix for Mantis #35862 : free the list of functions added with AddTerminateProc to avoid memory leaks
...
+ added test
git-svn-id: trunk@42457 -
2019-07-19 15:55:21 +00:00
Jeppe Johansen
9c77e87dd0
Fix types on embedded RTL.
...
Optimize consoleio for size on AVR.
Add support for RISC-V.
Regenerated makefile
git-svn-id: trunk@42333 -
2019-07-06 17:04:51 +00:00
Jonas Maebe
faf75095cd
* synchronised with trunk till r42189
...
git-svn-id: branches/debug_eh@42190 -
2019-06-07 18:24:38 +00:00
Jeppe Johansen
2f501be2a0
Fixed stack checking for embedded target. Based on work by Christo Crause
...
git-svn-id: trunk@42157 -
2019-06-01 19:18:31 +00:00
Jonas Maebe
3a1fb45315
* synchronised with trunk till r41976
...
git-svn-id: branches/debug_eh@41977 -
2019-05-02 19:44:41 +00:00
pierre
a06e5d0fe9
Comment out ports, doscalls, crt printer and graph rules completely to avoid multiple calls to compiler for same unit
...
git-svn-id: trunk@41949 -
2019-04-28 05:48:27 +00:00
Jonas Maebe
128bf046b4
* regenerated Makefiles with LLVM bitcode installation support
...
git-svn-id: branches/debug_eh@41914 -
2019-04-20 18:56:45 +00:00
pierre
74fed2a4cd
Regenerate Makefile's after fpcmake change in commit #41721
...
git-svn-id: trunk@41723 -
2019-03-17 14:45:03 +00:00
pierre
e467d2387d
Add sortbase unit to global units list, as it can be compiled for all CPUs
...
git-svn-id: trunk@41240 -
2019-02-06 15:51:54 +00:00
nickysn
178217821c
+ added sortbase as a dependency to unit fgl in the makefiles
...
git-svn-id: trunk@41180 -
2019-02-02 23:22:09 +00:00
nickysn
c24d525b9f
* compilation fixes for many platforms after r41167
...
git-svn-id: trunk@41168 -
2019-02-02 20:22:07 +00:00
nickysn
248fd313f8
+ introduced unit SortBase, which implements the foundation for pluggable
...
sorting algorithms. A default QuickSort implementation is provided by the
unit. Other units can be added, to provide other sorting algorithms (e.g.
HeapSort, MergeSort, IntroSort, etc.)
* TList and TFPList updated to use the current default sorting algorithm defined
in SortBase for their .Sort method.
git-svn-id: trunk@41167 -
2019-02-02 20:06:50 +00:00
pierre
71559c83a6
Fix parallel make for embedded rtl
...
git-svn-id: trunk@41159 -
2019-02-01 13:26:46 +00:00
pierre
193df0204a
Add x86_64-haiku target to some Makefile's
...
git-svn-id: trunk@40820 -
2019-01-09 22:43:56 +00:00
pierre
3a52fdf997
Add FPC_SYSTEM_EXIT_NO_RETURN macro for embedded target
...
git-svn-id: trunk@40801 -
2019-01-07 21:41:18 +00:00
Károly Balogh
5182dc37af
haiku-x86_64: regenerated all Makefiles, take 2
...
git-svn-id: trunk@40758 -
2019-01-04 03:18:42 +00:00
yury
a29290202f
* Regenerated makefiles to support x86_64-android.
...
git-svn-id: trunk@39958 -
2018-10-17 17:12:20 +00:00
yury
8c59eb1ce5
* Regenerated makefiles to support aarch64-android.
...
git-svn-id: trunk@39863 -
2018-10-06 09:36:03 +00:00
pierre
fe61157cae
Update all rtl Makefile's
...
git-svn-id: trunk@39824 -
2018-09-27 06:55:12 +00:00
florian
a34d4e715c
Merged riscv_new branch
...
git-svn-id: trunk@39813 -
2018-09-26 19:49:08 +00:00
svenbarth
09e5f463dc
+ add Delphi-compatible FileGetSymLinkTarget functions to all platforms (currently returns False on all platforms); this also includes TSymLinkRec variants for both RawByteString and UnicodeString
...
git-svn-id: trunk@39669 -
2018-08-24 15:33:45 +00:00
svenbarth
92dcdd8b5b
+ add Delphi compatible FollowLink parameter (default is True) to FileExists and DirectoryExists; support for it is up to each target
...
git-svn-id: trunk@39668 -
2018-08-24 15:33:09 +00:00
marco
d143ab60e1
* regenned makefile without date/rev components for easier merging.
...
git-svn-id: trunk@39630 -
2018-08-18 15:06:25 +00:00
Jeppe Johansen
2aaf481d89
Regenerated makefiles.
...
git-svn-id: branches/laksen/riscv_new@39476 -
2018-07-20 10:40:57 +00:00
nickysn
65d8836952
* updated dependencies of unit ports (objpas and x86 is no longer required on
...
certain platforms) and regenerated makefiles
git-svn-id: trunk@39373 -
2018-07-04 00:33:12 +00:00
pierre
d6be56e225
Regenerated Makefile's after addition of ppas and ppaslink script removal in rev 38745
...
git-svn-id: trunk@38750 -
2018-04-12 15:23:03 +00:00
florian
055a49b202
* patch by Christo Crause: the subarch type for atmega 8, 8A, 16 & 32 was incorrect. Atmega8A was also listed under the wrong subarch type in the makefile, also fixed.
...
* atmega8a needs to use rjmp now
git-svn-id: trunk@38282 -
2018-02-18 10:54:59 +00:00
florian
6726150147
+ embedded uses also FPC_STDOUT_TRUE_ALIAS to save memory
...
git-svn-id: trunk@38212 -
2018-02-11 19:06:46 +00:00
florian
7d1d91e9cc
* compile math (and sysutils as a a dependency) unit on m68k-embedded, resolves #33068
...
* some more features having only minimal impact on memory requiremets and needed for math/sysutils enabled on m68k-embedded
git-svn-id: trunk@38092 -
2018-01-31 20:57:07 +00:00
pierre
bdd3b4e695
* Move rtl.cfg content to system.cfg
...
+ New rtl.cfg containg non-feature options of former file (i8086 only)
* Use system.cfg for system unit compilation
+ add @rtl.cfg option for i8086 CPU
git-svn-id: trunk@37920 -
2018-01-06 12:27:28 +00:00
pierre
595938637e
Add explicit FPC_SYSTEM_OPT variable that is only used for compilation of system units, thus allowing to explicitly pass -Sf option
...
git-svn-id: trunk@37890 -
2018-01-02 16:50:58 +00:00
florian
d315d3cc96
* after r34939, it was not taken care of the extra storage needed for the size field, fixed, should fix #32875
...
git-svn-id: trunk@37883 -
2017-12-30 16:38:13 +00:00
Jeppe Johansen
4a169e6b1a
Changed subarch of at90pwm161
...
git-svn-id: trunk@37858 -
2017-12-29 11:30:35 +00:00
florian
5bedaf11f4
* fpcmake.inc and Makefiles renerated after last commit
...
git-svn-id: trunk@37834 -
2017-12-27 15:08:18 +00:00
florian
b41cb26727
+ write selected features in ppu of the system unit and load them further on
...
* ppu version update
* -Sf might be used only during system unit compilation
* loadsystemunit factored out so the system unit can be loaded earlier than other units to get features set
git-svn-id: trunk@37708 -
2017-12-10 16:32:56 +00:00
florian
b086b10adf
* enable more features for avr6
...
* ifdef'ed uncompilable procedures
git-svn-id: trunk@37584 -
2017-11-12 22:14:21 +00:00
florian
7debc7920a
* enable more features if avr6 is defined
...
git-svn-id: trunk@37583 -
2017-11-12 22:14:19 +00:00
florian
6cd65d9511
* avrsim also provided when SUBARCH is avr6
...
git-svn-id: trunk@37581 -
2017-11-12 22:14:16 +00:00
florian
3a6f1fda78
* implemented _FPC_haltproc and Default_IRQ_handler in pascal, resolves issue #32633
...
git-svn-id: trunk@37545 -
2017-11-01 16:33:36 +00:00
florian
c7d5525b56
+ implemented some AVR specific intrinsics
...
git-svn-id: trunk@37544 -
2017-11-01 16:33:34 +00:00
pierre
d18627f0af
* Update all fpcsrc Makefile's using latest fpcmake version 2017-09-21 rev 37286
...
git-svn-id: trunk@37462 -
2017-10-16 00:27:27 +00:00
Károly Balogh
04dee0fc04
regenerated Makefiles for m68k-macos target
...
git-svn-id: trunk@37034 -
2017-08-22 11:16:42 +00:00
pierre
5dec40d089
Add more CPU options to embedded/rtl.cfg
...
git-svn-id: trunk@36836 -
2017-08-04 13:38:07 +00:00
pierre
d7cdbcd71e
m68k CPU also needs -SfSOFTFPU option
...
git-svn-id: trunk@36833 -
2017-08-04 13:09:37 +00:00
pierre
7966957ec9
Add configuration options for i8086 and m68k CPUs
...
git-svn-id: trunk@36832 -
2017-08-04 12:56:15 +00:00
florian
9e1dd6d9b5
* lpi version updated
...
git-svn-id: trunk@36735 -
2017-07-16 09:24:15 +00:00
nickysn
748428b637
+ support the KOI8-R and KOI8-U Cyrillic encodings
...
git-svn-id: trunk@36445 -
2017-06-07 13:51:53 +00:00
nickysn
fce5fbd726
+ added cp3021 (Bulgarian MIK) code page support
...
git-svn-id: trunk@36444 -
2017-06-07 13:19:20 +00:00
nickysn
396eebbfb5
+ added support for iso8859-[3,4,6,7,8,9,10,11,13,14,15,16]
...
* charmap .txt files in rtl/ucmaps for iso8859-[1,2,5] also updated
git-svn-id: trunk@36425 -
2017-06-05 16:36:24 +00:00
nickysn
35be7348fb
+ added code pages 737, 775, 857, 860, 861, 862, 863, 864, 865 and 869
...
git-svn-id: trunk@36423 -
2017-06-05 14:25:15 +00:00
nickysn
ef25c33d69
+ added cp855 to the implicit unit list in the rtl makefiles
...
git-svn-id: trunk@36421 -
2017-06-05 12:19:01 +00:00
florian
c79342030e
* let the avrsim throw an exception if a program tries to execute code at address 0
...
git-svn-id: trunk@36311 -
2017-05-23 20:18:17 +00:00
florian
bfca9d3477
* avr I/O space is always shifted by 32 bytes in memory
...
git-svn-id: trunk@36064 -
2017-05-02 19:51:22 +00:00
pierre
17b2671213
Regenerate all Makefile's after changes related to FPCDIR checks
...
git-svn-id: trunk@35833 -
2017-04-18 14:15:47 +00:00
florian
fefe52327c
* z80-embedded rtl skeleton continued
...
git-svn-id: branches/z80@35712 -
2017-04-02 12:59:24 +00:00
florian
33d56598e0
+ basic embedded rtl support for z80
...
git-svn-id: branches/z80@35677 -
2017-03-28 20:20:09 +00:00
Jeppe Johansen
7e75457a3e
Added more Nordic Semi controllers. Created a new unit for NRF52x controllers with a more precise register naming following Nordic SDK conventions.
...
Patch from Paul Mitchell.
git-svn-id: trunk@35274 -
2017-01-10 20:30:20 +00:00
florian
8b3478617d
* enable more feature on avr, as long as no pascal level file I/O is used, this does not hurt
...
git-svn-id: trunk@34975 -
2016-11-26 19:44:55 +00:00
florian
01e1e9410d
+ dummy heap status implementations
...
git-svn-id: trunk@34939 -
2016-11-20 18:31:03 +00:00
florian
cfb5ebeb23
* Find* subroutines return an error by default
...
git-svn-id: trunk@34933 -
2016-11-20 16:03:12 +00:00
florian
16fa079a2a
* allocate always a minimum block size, else free list management causes memory corruption
...
git-svn-id: trunk@34930 -
2016-11-20 15:44:22 +00:00
florian
e218f4f33b
* checking the address of the storage location of a procedure variable makes no sense, check the variable contents itself instead
...
git-svn-id: trunk@34922 -
2016-11-19 21:57:56 +00:00
florian
9a4c7e2244
* return defined values for GetDate and GetTime for the embedded targets
...
git-svn-id: trunk@34921 -
2016-11-19 21:55:40 +00:00
Jeppe Johansen
6a1c1e4f29
Added support for NRF52832 controllers.
...
git-svn-id: trunk@34170 -
2016-07-22 10:01:10 +00:00
nickysn
5306ee552b
* regenerated makefiles with latest fpcmake
...
git-svn-id: trunk@34008 -
2016-06-18 01:00:45 +00:00
nickysn
c639bf3900
* fixed bug, caused by an incorrect order of ifdefs, which caused the system
...
unit of the embedded target to not compile on CPUs, not using the softfpu
implementation
git-svn-id: trunk@34005 -
2016-06-18 00:22:20 +00:00
nickysn
73d0dae569
+ added various things, needed for i8086 compilation to the system unit of the
...
embedded target
git-svn-id: trunk@34003 -
2016-06-17 22:31:38 +00:00
nickysn
a58dd988a4
* regenerate makefiles after the fpcmake update
...
git-svn-id: trunk@34002 -
2016-06-17 22:05:59 +00:00
florian
6f9d74b83e
+ define FPC_NO_DEFAULT_HEAP for the embedded target as well
...
git-svn-id: trunk@33694 -
2016-05-16 13:26:39 +00:00
marco
e7eb7d7415
* dummy executeprocess routines fix, by Michael Ring, fpc-devel list.
...
git-svn-id: trunk@33355 -
2016-03-27 19:27:48 +00:00
Jeppe Johansen
1c0c944311
Added x86_64-embedded target. Patch from Benjamin Rosseaux
...
git-svn-id: trunk@33097 -
2016-02-14 10:57:00 +00:00
florian
dfd261f2d6
* embedded heap manager takes care of ReturnNilIfGrowHeapFails
...
git-svn-id: trunk@33070 -
2016-02-07 18:28:12 +00:00
florian
0695c92b73
* make Dos.GetMsCount a dummy for embedded targets
...
git-svn-id: trunk@33065 -
2016-02-07 11:16:39 +00:00
Jeppe Johansen
328b6464ed
Add debug info to the CPU units by default, to be able to print register contents with GDB.
...
git-svn-id: trunk@33064 -
2016-02-06 20:16:45 +00:00
florian
026848b3e1
+ use CPU_UNITS_DEFINED to track if a SUBARCH is passed, so with CPU_UNITS_DEFINED=1 it is easily possible to compile without any cpu units
...
git-svn-id: trunk@32833 -
2016-01-03 09:36:23 +00:00
Jeppe Johansen
f452d9140e
Added missing reset vector
...
git-svn-id: trunk@32786 -
2015-12-29 11:07:20 +00:00
Jeppe Johansen
970f0064ea
Downgrade build message from makefile from error to warning for arm-embedded. This makes it possible to build a working RTL with external startup code for subarchs with no cpu units.
...
git-svn-id: trunk@32750 -
2015-12-26 23:58:09 +00:00
florian
3b50d0b64e
* patch by Bernd to fix interrupt handling for the ATtiny1634 and ATtiny167 controllers (use jmp instead of rjmp to jump to the handlers), resolves issue #29122
...
git-svn-id: trunk@32650 -
2015-12-13 10:44:43 +00:00
florian
7b9a257549
* complain no matching SUBARCH value is passed, issue #29177
...
git-svn-id: trunk@32649 -
2015-12-13 10:41:12 +00:00
Jeppe Johansen
4b1eb0e4f3
Applied patch from Michael Ring fixing the startup code for Freescale microcontrollers.
...
git-svn-id: trunk@32568 -
2015-12-02 18:44:20 +00:00
Jeppe Johansen
5ec4d38231
Add support for ram-less AVR chips and simultanously optimize flash/ram size the initfinal calling sequence.
...
git-svn-id: trunk@32448 -
2015-11-22 00:37:10 +00:00
Jeppe Johansen
49f8d574db
Save some space on ATTiny28 since it doesn't have any ram.
...
git-svn-id: trunk@32445 -
2015-11-21 19:33:42 +00:00
Jeppe Johansen
9aa3c23b18
Added a bunch of new and fixed embedded controller units. From Michael Ring.
...
git-svn-id: trunk@32386 -
2015-11-21 10:30:49 +00:00
florian
70b8789262
o basic extended pascal support:
...
+ automatically loaded helper unit
* Makefiles adapted
* mode switch
* mode switches reorganized
+ TimeStamp support
git-svn-id: trunk@32330 -
2015-11-15 15:13:36 +00:00
michael
fde42ca8ef
* Type helpers, compatible to Delphi XE 8
...
git-svn-id: trunk@32262 -
2015-11-07 09:40:54 +00:00
nickysn
2e3cb70489
* regenerated makefiles after adding the win16 target
...
git-svn-id: trunk@31525 -
2015-09-05 11:02:54 +00:00
florian
d71a3d0533
* charset depends on the objpas unit
...
git-svn-id: trunk@31438 -
2015-08-28 18:49:02 +00:00
Jeppe Johansen
5a302dfabb
Fix some addresses that were missing a zero in CortexM7 unit.
...
Change all .word directives to .long in stm32f7xx headers.
git-svn-id: trunk@31325 -
2015-08-15 12:23:08 +00:00
Jeppe Johansen
4e646cca60
Forgot to add Cortex-M7 unit to previous commit.
...
git-svn-id: trunk@31258 -
2015-07-31 22:25:08 +00:00
Jeppe Johansen
2b80d46492
Added STM32F7xx controller units and types.
...
git-svn-id: trunk@31257 -
2015-07-31 22:21:16 +00:00
Jeppe Johansen
55669f62b1
Added most AVR controllers.
...
Made absolutevarsym use PUint instead of AWord for its offset to fix range errors.
git-svn-id: trunk@31242 -
2015-07-29 21:01:21 +00:00
florian
42ea874bb1
* avr version corrected for several controllers
...
git-svn-id: trunk@31237 -
2015-07-27 19:49:02 +00:00
florian
ab43e07320
* reduce code size after r31031
...
git-svn-id: trunk@31041 -
2015-06-13 17:00:32 +00:00
Jeppe Johansen
353682db67
Enable SUBARCH directive for avr-embedded target.
...
git-svn-id: trunk@31032 -
2015-06-13 12:40:31 +00:00
Jeppe Johansen
ab9c8bb569
Fixed startup assembler code for the case where there's no data in .bss and/or in .data.
...
Fixed _stack_top symbol calculation so it works for all controllers.
Added ATTINY2313 controller.
git-svn-id: trunk@31031 -
2015-06-13 12:30:50 +00:00
Jeppe Johansen
db6093023b
Fixed initialization code for MK20D7 controllers.
...
Added flash configuration section to RTL and linker script.
git-svn-id: trunk@30972 -
2015-06-02 22:59:03 +00:00
florian
e9ef6347d2
* ATmega16 support by Anton Kavalenka, resolves issue #28217
...
git-svn-id: trunk@30943 -
2015-05-31 15:55:39 +00:00
florian
6a26268793
* correct number of interrupt vectors
...
git-svn-id: trunk@30939 -
2015-05-30 18:01:38 +00:00
florian
cf552b2a0b
+ ATmeag168/ATmeag368 support
...
git-svn-id: trunk@30938 -
2015-05-30 18:01:14 +00:00
florian
0cd521fc8b
+ ATmega48/ATmega88 support
...
git-svn-id: trunk@30937 -
2015-05-30 17:55:49 +00:00
florian
e9d886cdfc
* cleanup
...
git-svn-id: trunk@30931 -
2015-05-28 21:10:58 +00:00
florian
0f73675354
+ ATtiny24/ATtiny44/ATtiny84 support
...
git-svn-id: trunk@30930 -
2015-05-28 21:10:39 +00:00
Jeppe Johansen
36dfe750d8
Added Freescale MK20D7 controller support.
...
git-svn-id: trunk@30925 -
2015-05-28 11:46:22 +00:00
Jonas Maebe
89418d23e5
* regenerated Makefiles with Linux/AArch64 support
...
git-svn-id: trunk@30891 -
2015-05-20 20:15:10 +00:00
florian
bbcc66ad15
* PASCALMAIN does not return, so we can jmp to it
...
git-svn-id: trunk@30770 -
2015-05-02 19:18:10 +00:00
florian
ca9ef3d209
* cometics
...
git-svn-id: trunk@30769 -
2015-05-02 19:16:49 +00:00
florian
f5edf77a05
+ Atmega8 support
...
git-svn-id: trunk@30768 -
2015-05-02 18:18:00 +00:00
florian
8ee9550d22
+ misising part of r30759 (commit of sysstrh.inc shouldn't have gone in r30759):
...
slightly modified patch by lelekx to implement plugable file routines for the embedded target, resolves issue #22918
git-svn-id: trunk@30764 -
2015-05-02 13:51:32 +00:00
florian
c2c87828e9
+ slightly modified patch by lelekx to implement plugable file routines for the embedded target, resolves issue #22918
...
git-svn-id: trunk@30759 -
2015-05-02 08:03:18 +00:00
florian
500a2051ac
* dependencies updated
...
git-svn-id: trunk@30755 -
2015-05-01 16:36:22 +00:00
florian
8de58f5db2
* use heapmgr to make more test programs work with avrsim
...
git-svn-id: trunk@30753 -
2015-05-01 16:33:11 +00:00
florian
b8198963f3
* use modeswitch result instead of mode objpas, so the objpas unit is not pulled in
...
git-svn-id: trunk@30752 -
2015-05-01 16:31:07 +00:00
florian
7b48232d71
* moved common code to a separate include file
...
git-svn-id: trunk@30664 -
2015-04-19 12:53:06 +00:00
florian
2ecadc065e
* noreturn directive
...
git-svn-id: trunk@30663 -
2015-04-19 12:52:21 +00:00
florian
07cba31a0a
* cosmetics
...
git-svn-id: trunk@30631 -
2015-04-17 20:12:57 +00:00
florian
77bc87a809
* do not compile consoleio in objpas mode to avoid dependency on the objpas unit, resolves also #27856
...
git-svn-id: trunk@30607 -
2015-04-15 19:45:34 +00:00
Jeppe Johansen
65a69129c5
Add initial support for STM32F429 core
...
git-svn-id: trunk@30599 -
2015-04-14 21:55:37 +00:00
florian
bae4d89913
- avrsim needs no separate rule
...
git-svn-id: trunk@30598 -
2015-04-14 21:19:08 +00:00
florian
886e3e8d02
* disable several complex procedures for avr with a newly introduced define: EXCLUDE_COMPLEX_PROCS. They
...
might compile with an improved register allocator in the future
git-svn-id: trunk@30546 -
2015-04-11 14:43:39 +00:00
florian
a01a010824
* disable lineinfo unit for avr for now
...
git-svn-id: trunk@30440 -
2015-04-05 19:08:33 +00:00
florian
07aa519e1c
* add console output support to avrsim controller unit
...
git-svn-id: trunk@30388 -
2015-03-29 21:48:42 +00:00
florian
1b9105e8c3
* make 3.82 fixes
...
* disable getopts for avr-embedded
git-svn-id: trunk@30386 -
2015-03-29 21:41:00 +00:00
florian
dfd4d3656b
+ avrsim controller target requiring a special avr simulator with a certain memory location handling, see avrsim.pp controller helper unit for what it is needed
...
git-svn-id: trunk@30385 -
2015-03-29 21:13:36 +00:00
florian
e4b8478da4
* fix building of avr-embedded rtl
...
* make 3.82 related fixes
git-svn-id: trunk@30379 -
2015-03-29 19:45:07 +00:00
Jeppe Johansen
f7526d0d36
Add classes and stub thread support in the embedded rtl.
...
git-svn-id: trunk@30274 -
2015-03-22 13:55:20 +00:00
Jeppe Johansen
d12b913e70
Add initial support in ARM-embedded for Allwinner A20.
...
git-svn-id: trunk@30144 -
2015-03-08 12:22:57 +00:00
Jonas Maebe
fa328436ab
* regenerated for iphonesim/x86-64
...
git-svn-id: trunk@29974 -
2015-02-23 22:56:41 +00:00
Jonas Maebe
3d01d4ceb1
* regenerated with Darwin/AArch64 support
...
git-svn-id: trunk@29950 -
2015-02-23 22:54:53 +00:00
Jeppe Johansen
1aeb07c835
Fixed more small bugs in the embedded heapmgr. Some changes copied from tinyheap.
...
git-svn-id: trunk@29612 -
2015-02-03 19:37:29 +00:00
Jeppe Johansen
85c5e7330a
Make HeapMgr.GetAlignedMem public. This function is useful for embedded targets where alignment > 32(or sizeof(pointer)) bytes is required.
...
Fix RegisterHeapBlock. Calling FreeMem requires the heap manager to be installed, plus it requires the size of the segment to be stored in front of the pointer. Instead use InternalFreeMem
git-svn-id: trunk@29611 -
2015-02-03 00:24:51 +00:00
Jeppe Johansen
7a826cc481
Fix compilation of i386-embedded target.
...
git-svn-id: trunk@29610 -
2015-02-03 00:22:51 +00:00
marco
d407b668d1
* version updated to 3.1.1
...
git-svn-id: trunk@29399 -
2015-01-04 21:09:04 +00:00
sergei
3a5e6485b5
- RTL: removed InitVariantManager, it was an empty procedure since day 1.
...
git-svn-id: trunk@29114 -
2014-11-22 20:35:46 +00:00
Jeppe Johansen
e012b4fa23
Inline calls to FindSize which removes a lot of unnecessary calls.
...
git-svn-id: trunk@28735 -
2014-10-04 11:05:25 +00:00
sergei
f85a8159ef
* compiler/mips/cpuinfo.pas: removed "FPU_" prefixes from FPU names, not necessary because compiler inserts one itself.
...
* rtl/embedded/system.pp: removed (commented out) FPU initialization from initialization of system unit, was dead code anyway because FPC_HAS_FEATURE_FPU is never defined and "feature FPU" does not exist.
* rtl/mips/*.inc: don't compile FPU instructions if compiling RTL with -CfNONE or -CfSOFT (however, handling these switches for MIPS targets in compiler needs further fixing).
git-svn-id: trunk@28670 -
2014-09-15 18:24:23 +00:00
Jeppe Johansen
0dc39b5d63
Applied patch from Michael Ring that adds some startup code for some new stm32f0 and stm32f1 controllers, and fixes naming on some LPC ARMv6m controllers.
...
git-svn-id: trunk@28009 -
2014-06-20 06:49:04 +00:00
pierre
3d34a8a3b0
Makefiles updated with fpcmake rev 27428
...
git-svn-id: trunk@27508 -
2014-04-10 09:58:17 +00:00
florian
b2b26f84cf
* partially merged the mips-embedded branch of Michael Ring:
...
- startup code/controller units are not merged yet
- assembler call does not pass the needed CPU type yet
git-svn-id: trunk@27188 -
2014-03-19 21:25:38 +00:00
sergei
9801288cdc
* Removed SysInitFPU/SysResetFPU from (remaining) system units initialization code. It is redundant there because it is called from fpc_cpuinit, or, in case of i386, from fpc_cpucodeinit.
...
* It fixes regression of tw16283b after r27169.
* BeOS, Haiku: added fpc_cpucodeinit to compensate for removal of SysInitFPU, it also enables use of CPU features like SSE.
git-svn-id: trunk@27171 -
2014-03-17 10:53:52 +00:00
Jeppe Johansen
bda6bf8137
Fix compilation of ARM-embedded RTL
...
git-svn-id: trunk@27115 -
2014-03-12 16:40:04 +00:00
Jeppe Johansen
10522e9779
Disabled a_adjust_sp optimized steps for now.
...
Integrated proper stack frame calculation.
Changed rjmp to jmp in ATMEGA128 interrupt vectors.
git-svn-id: trunk@26964 -
2014-03-05 19:17:46 +00:00
Jeppe Johansen
98606eea15
Fixed some bugs in the AVR RTL code.
...
Changed atmega code to use weak linking for interrupt handlers.
git-svn-id: trunk@26945 -
2014-03-04 08:03:27 +00:00
Jeppe Johansen
66f5b71fe9
Fixed passing of 32bit arguments on 8-bit architectures.
...
Added initial RTL startup code for AVR.
git-svn-id: trunk@26931 -
2014-03-02 20:53:21 +00:00
yury
73c26bd6be
* mipsel-android: Regenerated makefiles. From now the mipsel-android target can be built and used.
...
git-svn-id: trunk@26705 -
2014-02-07 12:37:17 +00:00
Tomas Hajny
ce4cb437e2
+ character sets for central Europe added also to Makefiles as implicit units
...
git-svn-id: trunk@26526 -
2014-01-20 00:20:11 +00:00
paul
14a34239cc
rtl: add cp856 to makefiles
...
git-svn-id: trunk@26387 -
2014-01-05 06:03:28 +00:00
nickysn
1bea98995b
* regenerated fpcmake makefiles after r25642
...
git-svn-id: trunk@25644 -
2013-10-05 10:11:27 +00:00
Jonas Maebe
af3f12f60c
* rawbytestring/unicodestring versions of findfirst/findnext/findclose
...
o these routines are now generic wrappers in filutil.inc, and call
the platform-dependent internalfindfirst/next/close routines
o on unix, the fnmatch routine got proper support for UTF-8 matching
(e.g., it won't match a partial UTF-8 code point to a "?" wildcard)
o for NativeNT, a similar (untested) UTF-16 version has been added
+ test for the above
* rawbytestring/unicodestring versions of fileage
git-svn-id: branches/cpstrrtl@25302 -
2013-08-19 22:04:25 +00:00
Jonas Maebe
df6a2dce00
+ unicodestring support for assign/erase/rename
...
+ codepage support for textrec/filerec and the above routines
* textrec/filerec now store the filename by default using widechar. It is
possible to switch back to ansichars using the FPC_ANSI_TEXTFILEREC define.
In that case, from now on the filename will always be stored in
DefaultFileSystemEncoding
* fixed potential buffer overflows and non-null-terminated file names in
textrec/filerec
+ dodirseparators(pwidechar), changed the dodirseparators(pchar/pwidechar)
parameters into var-parameters and gave those routines an extra parameter
that indicates whether the p(wide)char can be changed in place if
necessary or whether a copy must be made first (avoids us having to make
all strings always unique everywhere, because they might be changed on
some platforms via a pchar)
* do_open/do_erase/do_rename got extra boolean parameters indicating whether
the passed pchars point to data that can be freely changed (to pass on to
dodirseparators() if applicable)
* objects.pp: force assign(pchar) to be called, because
assign(array[0..255]) cannot choose between pchar and rawbytestring
versions (and removing the pchar version means that assign(pchar) will
be mapped to assign(shortstring) in {$h-})
* fixed up some routines in other units that depend on the format of
the textrec/filerec.name field
git-svn-id: branches/cpstrrtl@25137 -
2013-07-19 16:30:51 +00:00
Jonas Maebe
155aafc255
* moved SYSUTILS_HAS_ANSISTR/UNICODESTR_FILEUTIL_IMPL define to interface
...
so declarations can also depend on it and similar defines (not yet the
case)
+ added SYSUTILS_HAS_ANSISTR_ENVVAR_IMPL/SYSUTILS_HAS_UNICODESTR_ENVVAR_IMPL
to indicate whether the platform-dependent part of the unit provides
an ansistring/unicodestring interface to get environment variables
+ Windows version of getenvironmentvariable(unicodestring)
+ generic ansistring/unicodestring versions of GetEnvironmentVariable()
in case the platform doesn't provide them
* result of GetEnvironmentString() is ansistring/unicodestring depending
on the state of the FPC_RTL_UNICODE define
git-svn-id: branches/cpstrrtl@25116 -
2013-07-16 14:16:34 +00:00
Jonas Maebe
eeb98a0c0f
- removed platform-specific implementations of GetCurrentDir, SetCurrentDir,
...
CreateDir and RemoveDir, and implemented a generic one (based on the OS/2
version) in the shared sysutils code (so that the filesystem code page
support for the system unit routines can be reused)
* include both ansistring and unicodestring versions of the above routines,
and of ForceDirectories. Exception: GetCurrentDir, which cannot be
overloaded based on function result and whose return type currently
dependends on the FPC_UNICODE_RTL define
git-svn-id: branches/cpstrrtl@25113 -
2013-07-16 14:15:55 +00:00
Jonas Maebe
26b2149ced
* converted the following sysutils routines to unicodestring and
...
rawbytestring: FileExists, DirectoryExists, FileSetDate, FileGetAttr,
FileSetAttr, DeleteFile, RenameFile, FileSearch, ExeSearch,
FileIsReadOnly
git-svn-id: branches/cpstrrtl@25078 -
2013-07-09 19:01:45 +00:00
Jonas Maebe
60365489e2
* converted fileopen/filecreate interface to RawByteString for
...
msdos/embedded, but do not perform any code page conversions
(size limits prevent widestring manager on msdos, and the
embedded routines are empty)
git-svn-id: branches/cpstrrtl@25076 -
2013-07-09 19:01:36 +00:00
Jonas Maebe
d66d15aad3
+ added mkdir/chdir/rmdir(rawbytestring) and (unicodestring) to the system unit
...
* renamed platform-specific pchar versions of those rouines to do_*() and
changed them to either rawbytestring or unicodestring depending on the
FPCRTL_FILESYSTEM_SINGLE_BYTE_API/FPCRTL_FILESYSTEM_TWO_BYTE_API setting
* implemented generic shortstring versions of those routines on top of either
rawbytestring or unicodestring depending on the API-kind (in case of the
embedded target, if ansistring are not supported they will map directly
to shortstring routines instead)
* all platform-specific *dir() routines with rawbytestring parameters now
receive their parameters in DefaultFileSystemCodePage
- removed no longer required ansistring variants from the objpas unit
- removed no longer required FPC_SYS_MKDIR etc aliases
* factored out empty string and inoutres<>0 checks from platform-specific
*dir() routines to generic ones
o platform-specific notes:
o amiga/morphos: check new pathconv(rawbytestring) function
o macos TODO: convert PathArgToFSSpec (and the routines it calls) to
rawbytestring
o nativent: added SysUnicodeStringToNtStr() function
o wii: convert dirio callbacks to use rawbytestring to avoid conversion
+ test for unicode mk/ch/rm/getdir()
git-svn-id: branches/cpstrrtl@25048 -
2013-07-04 22:28:37 +00:00
Jonas Maebe
2e9b642a3b
* rtldefs.inc include file for embedded targets (forgot to commit earlier)
...
git-svn-id: branches/cpstrrtl@25009 -
2013-06-28 15:46:31 +00:00
Jonas Maebe
62ee16278b
* changed getdir(ansistring):ansistring to
...
getdir(rawbytestring):rawbytestring so it can accept strings in any
encoding and cleanly return results in DefaultRTLFileSystemCodePage
+ getdir(unicodestring):unicodestring
* renamed the getdir implementation of all platforms except for embedded-
without-ansistring-support to do_getdir(), and depending on the
FPCRTL_FILESYSTEM_SINGLE_BYTE_API/FPCRTL_FILESYSTEM_TWO_BYTE_API define
changed its shortstring parameter to ansistring or unicodestring. The
do_getdir(rawbytestring) routine should just set the code page of the
return value to DefaultFileSystemCodePage without conversion (not
DefaultRTLFileSystemCodePage with conversion, that conversion is performed
in getdir if necessary; this avoids double conversions in case
getdir(unicodestring) is called)
+ generic getdir(shortstring) for platforms supporting either ansistrings or widestrings
o platform maintainers:
o OS/2: adjust code to supports paths > 255 characters if those are supported
o Wii: adjust used callback to use rawbytestring to support paths > 255 characters and
avoid shortstring->rawbytestring conversion overhead
o Windows: GetCurrentDirectoryW is now always used (to prevent data loss)
git-svn-id: branches/cpstrrtl@24993 -
2013-06-27 21:37:47 +00:00
florian
0e9b8adb7a
patch by Michael Ring:
...
+ support of several armv6m MCUs for arm-embedded
* renamed lpc1343 unit to lpc13xx
+ more lpc13xx MCUs added
git-svn-id: trunk@24379 -
2013-04-29 19:57:08 +00:00
pierre
78a7043352
Regenerate all Makefiles with an up-to-date fpcmake binary (dummy commit)
...
git-svn-id: trunk@24367 -
2013-04-29 12:30:54 +00:00
florian
3d7033d81e
* Makefiles regenerated
...
git-svn-id: trunk@24325 -
2013-04-25 20:25:57 +00:00
paul
a592e77f35
rtl: add missing windows codepages (mantis #0024294 )
...
git-svn-id: trunk@24295 -
2013-04-22 01:48:12 +00:00
florian
380bc56e32
+ create a default heap on embedded targets and register this default heap
...
* sysutils for the embedded target depends on a working heap manager
git-svn-id: trunk@23853 -
2013-03-16 10:37:18 +00:00
paul
db357320d7
rtl: install all cpXXX .ppu and .o files
...
git-svn-id: trunk@23802 -
2013-03-12 11:44:15 +00:00
paul
e379daaf9c
compiler, rtl: move cpXXXX.pas files from compiler to RTL\charmaps directory and cleanup them, enable charmaps building for the majority of targets
...
git-svn-id: trunk@23799 -
2013-03-12 01:35:25 +00:00
florian
c2baf7b4c0
Merge r23058
...
git-svn-id: trunk@23776 -
2013-03-10 16:37:57 +00:00
florian
086ae4b999
Merge r22905 and r22906
...
git-svn-id: trunk@23773 -
2013-03-10 10:45:34 +00:00
florian
21c154d60a
Merged r22903
...
git-svn-id: trunk@23757 -
2013-03-09 20:56:07 +00:00
florian
1eeeb309c7
* intial armv6m support, it is not working yet, constant pool insertation and conditional branch fixup is not working yet
...
git-svn-id: trunk@23682 -
2013-03-03 12:20:10 +00:00
florian
bcd48ac1a1
+ patch by Justin Smyth to support the lpc1343, resolves #23844
...
git-svn-id: trunk@23620 -
2013-02-14 20:38:53 +00:00
yury
2fc220cc6c
* Regenerated makefiles.
...
git-svn-id: branches/targetandroid@23410 -
2013-01-16 14:52:36 +00:00
yury
d26f0552a0
* Sync with trunk r23404.
...
* Regenerated makefiles.
git-svn-id: branches/targetandroid@23405 -
2013-01-16 13:21:51 +00:00
florian
21d62277ce
+ build sysutils unit for arm-embedded
...
git-svn-id: trunk@23296 -
2013-01-02 11:02:44 +00:00
florian
358a62d7c3
* enable command line handling dummy for arm-embedded
...
git-svn-id: trunk@23295 -
2013-01-02 10:52:19 +00:00
florian
68d04a4d21
+ add random code from Francesco's GBA code
...
git-svn-id: trunk@23292 -
2013-01-02 10:47:35 +00:00
florian
d1856df4f7
* variants do not hurt arm either
...
git-svn-id: trunk@23281 -
2013-01-01 19:32:47 +00:00
florian
dcc227882d
+ newline
...
git-svn-id: trunk@23280 -
2013-01-01 19:32:17 +00:00
florian
d2a7d09931
* use pascal loop, so it can be better optimized
...
git-svn-id: trunk@23273 -
2013-01-01 14:59:30 +00:00
florian
85ae82def4
* enable more features for arm-embedded, they don't blow up executables if not used
...
git-svn-id: trunk@23263 -
2012-12-31 19:32:04 +00:00
florian
ebd2e79270
* calling SysInitExceptions is not really needed because it sets only some vars to nil which are nil anyways, this saves some bytes
...
git-svn-id: trunk@23261 -
2012-12-31 19:28:45 +00:00
florian
020b3e02ea
+ parallel compilation of embedded rtl
...
* fix rules for GNU Make 3.82
git-svn-id: trunk@23255 -
2012-12-31 14:17:20 +00:00
Jeppe Johansen
3ee29eb219
Fixed ARMv7-EM code generation and RTL compilation
...
Added LM4F120H5 controller type and startup code
git-svn-id: branches/laksen/arm-embedded@22903 -
2012-11-01 17:25:01 +00:00
masta
b047a80b14
Small fixes to ARM-Embedded RTL from Jeppe Johansen
...
Added FSMC register definitions(from Anton Rieckert)
Fixed faulty NVIC definitions
git-svn-id: trunk@22820 -
2012-10-22 11:59:28 +00:00
Jeppe Johansen
670dd29103
Added FSMC register definitions(from Anton Rieckert)
...
Fixed faulty NVIC definitions
git-svn-id: branches/laksen/arm-embedded@22818 -
2012-10-22 11:17:55 +00:00
Jeppe Johansen
9892aea2ca
Added register specifications to lpc1768.pp. From Joan Duran
...
git-svn-id: branches/laksen/arm-embedded@22647 -
2012-10-14 19:28:08 +00:00
Jeppe Johansen
84ea70fddc
Fixed some minor formating issues
...
Implemented a small heap mananger
Implemented console IO
Changed default LineEnding to CrLf(to ease console IO parsing)
git-svn-id: branches/laksen/arm-embedded@22646 -
2012-10-14 19:10:20 +00:00
Jeppe Johansen
80bb3febea
Fixed assembler calling command line for cpus>ARMv5TE. EDSP instructions will generate errors while assembling, due to RTL assembler routines
...
Updated boot code for all Cortex-M3 controllers, and sc32442b to use weak linking for exception tables.
Cortex-M3 devices now also share initialization routine to simplify maintenance
STM32F10x classes now have specific units which fit the interrupt source names and counts
git-svn-id: branches/laksen/arm-embedded@22581 -
2012-10-08 03:15:40 +00:00
tom_at_work
810adb2f65
Merge with trunk r22040. Regenerated makefiles.
...
git-svn-id: branches/targetandroid@22046 -
2012-08-09 08:12:34 +00:00
tom_at_work
4150f0a2fb
Rebase with r21814
...
git-svn-id: branches/targetandroid@21815 -
2012-07-07 23:09:20 +00:00
tom_at_work
77a85b7448
* basic android/x86 support
...
git-svn-id: branches/targetandroid@21296 -
2012-05-14 21:14:12 +00:00
Jonas Maebe
834026bfb5
* synchronised with trunk up to r21067
...
git-svn-id: branches/jvmbackend@21068 -
2012-04-26 21:24:20 +00:00
tom_at_work
acbc94e0fd
- initial support for the android/arm target in the compiler; resulting .so's can be used for Android/ARM app development.
...
- basic rtl support using system calls
- fp(c)make/fppkg/makefile support
todo:
- revisit systems/t_android.pas: mostly duplicate with t_linux.pas, containing
lots of unnecessary code
- revisit rtl changes
- android ndk header translation import
- better app build/packaging support
- android/x86 support
git-svn-id: branches/targetandroid@21061 -
2012-04-26 09:36:42 +00:00
pierre
1b3fd997fc
+ Regenerate all Makefiles's after adding x86_64 netbsd target
...
git-svn-id: trunk@21031 -
2012-04-24 23:15:18 +00:00
Tomas Hajny
d442d14e0c
+ FileNameCasePreserving added - see #18066 in Mantis
...
git-svn-id: trunk@20894 -
2012-04-15 20:56:13 +00:00
Jonas Maebe
aee5380ae0
* merged trunk up to r20882
...
o support for the new codepage-aware ansistrings in the jvm branch
o empty ansistrings are now always represented by a nil pointer rather than
by an empty string, because an empty string also has a code page which
can confuse code (although this will make ansistrings harder to use
in Java code)
o more string helpers code shared between the general and jvm rtl
o support for indexbyte/word in the jvm rtl (warning: first parameter
is an open array rather than an untyped parameter there, so
indexchar(pcharvar^,10,0) will be equivalent to
indexchar[pcharvar^],10,0) there, which is different from what is
intended; changing it to an untyped parameter wouldn't help though)
o default() support is not yet complete
o calling fpcres is currently broken due to limitations in
sysutils.executeprocess() regarding handling unix quoting and
the compiler using the same command lines for scripts and directly
calling external programs
o compiling the Java compiler currently requires adding ALLOW_WARNINGS=1
to the make command line
git-svn-id: branches/jvmbackend@20887 -
2012-04-15 15:54:10 +00:00
Jonas Maebe
44bd889b9b
* regenerated Makefiles with AIX support
...
git-svn-id: trunk@20812 -
2012-04-11 18:03:57 +00:00
pierre
2c4d8cc9d9
Add x86_64-openbsd target in Makefiles
...
git-svn-id: trunk@20723 -
2012-04-06 16:49:08 +00:00
pierre
e6cf348904
Update Makefile for mips-linux support
...
git-svn-id: trunk@20448 -
2012-02-29 11:22:05 +00:00
florian
ce070c93fc
+ patch by Jeppe Johansen to support the SC32442B
...
git-svn-id: trunk@20081 -
2012-01-14 21:39:32 +00:00
florian
6a1a2d3464
* get rid of some feature checks, probably the whole feature stuff is plainly the wrong way, embedded rtl compiles again, resolves #20913
...
git-svn-id: trunk@19907 -
2011-12-29 14:06:30 +00:00
florian
c4c20102fd
* make buildrtl aware of heapmgr
...
git-svn-id: trunk@19906 -
2011-12-29 14:04:50 +00:00
florian
9426cac1b0
* rebuilt Makefiles
...
git-svn-id: trunk@19748 -
2011-12-04 15:34:01 +00:00
florian
375f83c874
* moved heap manager on embedded systems into a separate unit
...
* moved console io on embedded systems into a seperate unit, this unit might setup input/output e.g. to be redirected to a serial port
* cleanup of the embedded system unit
git-svn-id: trunk@19168 -
2011-09-21 20:57:37 +00:00
florian
2f780a7a28
* fixes compilation of atmega128 unit
...
git-svn-id: trunk@18974 -
2011-09-04 19:39:39 +00:00
florian
0781ac1f82
+ support for lpc1768 by David Welch
...
git-svn-id: trunk@18927 -
2011-08-31 20:17:23 +00:00
florian
519df6d3a8
* fix compilation without exit code
...
git-svn-id: trunk@18870 -
2011-08-27 22:45:07 +00:00
florian
26a9bbbd13
* fix sysdir.inc dummy for embedded targets
...
git-svn-id: trunk@18868 -
2011-08-27 22:43:53 +00:00
florian
d21fde5604
* disable thumb2_bare for now
...
git-svn-id: trunk@18864 -
2011-08-27 21:20:33 +00:00
florian
34b033ba72
+ armv4t
...
* use armv4t and armv7m, in the makefiles instead of armv7 and cortexm3
git-svn-id: trunk@18863 -
2011-08-27 20:21:42 +00:00
florian
a774f4681a
* completed atmega128-Unit by Christian
...
git-svn-id: trunk@18849 -
2011-08-25 21:59:29 +00:00
florian
a08dfdf803
o slightly modified patch by John Clymer:
...
* converts the embedded information into controller specific records (arm and avr)
* new cpu-specific units for several Stellaris (Fury and Tempest class) targets,
+ STM32F103RB
- old Stellaris unit has been removed
git-svn-id: trunk@18848 -
2011-08-25 21:46:26 +00:00
florian
e5c796e9fd
* when compiling for arm-embedded, sub-arch is also passed to the compiler
...
+ compile cpu-specific rtl units depending on the sub-arch
* some makefiles regenerated
git-svn-id: trunk@18847 -
2011-08-25 21:41:08 +00:00
florian
3ea50bf440
* fix USBMem as requested by Jeppe on IRC
...
git-svn-id: trunk@18804 -
2011-08-21 19:29:20 +00:00
Jonas Maebe
28c20cfc5e
* the default string type for the JVM target is no longer automatically
...
unicodestring = java.lang.String. The reason this was the default in
the past is that this was the first string type that was implemented,
and without it being the default most code involving string operations
would fail. Now the default strings types are the same as for other
targets
+ new {$modeswitch unicodestrings} directive, that when activated
*together* with {$h+},
1) changes char into an alias for widechar
2) changes string into an alias for unicodestring
3) changes the preferred string evaluation type (in case of uncertainty)
to unicodestring
{$modeswitch unicodestrings} with {$h-} does not change anything at all
regarding the string type (it still changes the char type)
+ new uuchar unit that redefines char as widechar, and which is automatically
included by the compiler if {$modeswitch unicodestrings} is enabled
git-svn-id: branches/jvmbackend@18781 -
2011-08-20 08:35:47 +00:00
pierre
1c2a5f9819
+ Update all Makefile's modified by
...
change in utils/fpcm/fpcmake.ini in prevous commit.
Adapt also other files to that change:
* compiler/globals.pas: Replace $FPCTARGET by os_string if
tf_use_8_3 flag is set for target_info also.
* tests/Makefile.fpc: Modify TEST_TARGETSUFFIX in the same way
as TARGETSUFFIX was modified in previous commit.
* tests/utils/dotest.pp:
+ New variable UseOSOnly, set to true if only target OS name
should be used for subdirectories.
git-svn-id: trunk@18228 -
2011-08-16 20:10:19 +00:00
florian
abd5ca46c8
+ build unit and lazarus project for the embedded target
...
git-svn-id: trunk@18151 -
2011-08-08 20:10:19 +00:00
florian
144e59a1a7
* indention fixed
...
git-svn-id: trunk@18150 -
2011-08-08 20:09:39 +00:00
marco
39d7bb511d
* Regenned all makefiles before 2.6.x branching.
...
git-svn-id: trunk@18073 -
2011-08-03 13:41:52 +00:00
florian
aae20fd488
* enable loading of the stack pointer
...
git-svn-id: trunk@18010 -
2011-07-17 17:14:06 +00:00
florian
ac17ee8acb
* fix compilation of atmega128 startup code, not working yet
...
git-svn-id: trunk@18006 -
2011-07-17 08:54:24 +00:00
florian
f276177c44
+ build atmega128 mcu unit
...
git-svn-id: trunk@17971 -
2011-07-10 21:03:05 +00:00
florian
359633bbdc
* initial atmega128 reg. definition and startup code implementation
...
git-svn-id: branches/avr@17291 -
2011-04-10 18:42:18 +00:00
florian
c2f04796b9
+ only include softfpu if FPUNONE is not set
...
git-svn-id: trunk@17012 -
2011-02-26 20:10:49 +00:00
florian
e39a220945
* patch by Jeppe Johansen: The reset vector for stm32f103 didn't have the T bit set, so it will execute a hard fault handler instead of the reset code, which by default is the same, resolves #18630
...
git-svn-id: trunk@16847 -
2011-01-30 11:53:38 +00:00
florian
0be59445f8
+ basic i386-embedded implementation for multiboot by Jeppe Johansen, resolves #15676
...
git-svn-id: trunk@16801 -
2011-01-23 11:18:50 +00:00
Jonas Maebe
8b0301409a
+ i386/iphonesim target for the new iPhoneSimulator in Xcode 3.2.4 and
...
later: the same as i386/darwin, except
a) uses the non-fragile Objective-C ABI/runtime
b) does not require stubs for direct calls/jumps (not required for
i386/darwin under 10.6 and later either, but still generated
there for backwards compatibility)
c) only the same packages are enabled as for ARM/Darwin
d) MacOSAll is compiled specifically for the iPhoneSimulator SDK
This target also defines the symbol "darwin" apart from the target
name "iphonesim" for source code compatibility reasons.
git-svn-id: trunk@16065 -
2010-09-29 21:56:47 +00:00
florian
f13eff22b0
+ added generic stellaris support as provided by #17365
...
git-svn-id: trunk@15957 -
2010-09-09 09:02:14 +00:00
florian
786c4e206f
* enables compilation of iso7185 unit on all targets
...
git-svn-id: trunk@15730 -
2010-08-06 17:45:42 +00:00
florian
138c5d1570
+ feature switch RESOURCES
...
* use of feature switches in objpas updated
+ build unit objpas for embedded targets
git-svn-id: trunk@15473 -
2010-06-22 12:37:41 +00:00
florian
a2eaa2db34
o patch by Jeppe Johansen, resolves #16769
...
+ Added a few registers to the stm32f103 rtl unit (interrupt controller related)
git-svn-id: trunk@15470 -
2010-06-22 11:47:36 +00:00
florian
851b00f8e9
* more properties fixed
...
git-svn-id: trunk@14156 -
2009-11-12 18:11:10 +00:00
florian
515774b864
* merged armthum branch
...
-- Zusammenführen der Unterschiede zwischen Projektarchiv-URLs in ».«:
U rtl/arm/setjump.inc
A rtl/arm/thumb2.inc
U rtl/arm/divide.inc
A rtl/embedded/arm/stm32f103.pp
U rtl/inc/system.inc
U compiler/alpha/cgcpu.pas
U compiler/sparc/cgcpu.pas
U compiler/i386/cgcpu.pas
U compiler/ncgld.pas
U compiler/powerpc/cgcpu.pas
U compiler/avr/cgcpu.pas
U compiler/aggas.pas
U compiler/powerpc64/cgcpu.pas
U compiler/x86_64/cgcpu.pas
U compiler/cgobj.pas
U compiler/psystem.pas
U compiler/aasmtai.pas
U compiler/m68k/cgcpu.pas
U compiler/ncgutil.pas
U compiler/rautils.pas
U compiler/arm/raarmgas.pas
U compiler/arm/armatts.inc
U compiler/arm/cgcpu.pas
U compiler/arm/armins.dat
U compiler/arm/rgcpu.pas
U compiler/arm/cpubase.pas
U compiler/arm/agarmgas.pas
U compiler/arm/cpuinfo.pas
U compiler/arm/armop.inc
U compiler/arm/narmadd.pas
U compiler/arm/aoptcpu.pas
U compiler/arm/armatt.inc
U compiler/arm/aasmcpu.pas
U compiler/systems/t_embed.pas
U compiler/psub.pas
U compiler/options.pas
git-svn-id: trunk@13801 -
2009-10-04 09:03:44 +00:00