Commit Graph

348 Commits

Author SHA1 Message Date
Viktor Szakats
7140870656 20000422-22:47 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-22 20:44:26 +00:00
Ron Pinkas
a34c135487 20000422-11:35 GMT-8 Ron Pinkas <Ron@Profit-Master.com>
* source/compiler/hvm.c
     * Minor correction of HB_TRACE messages for HB_P_ZERO, HB_P_ONE, HB_P_PUSHNIL, HB_P_PUSHBYTE, and HB_P_PUSHINT
2000-04-22 18:49:40 +00:00
Viktor Szakats
28a4c0837e 20000422-20:37 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-22 18:34:36 +00:00
Viktor Szakats
12fcab20d5 20000422-18:41 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-22 16:38:48 +00:00
Viktor Szakats
09bb6f21b2 20000422-16:16 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-22 14:13:56 +00:00
Ron Pinkas
220b114c3e 20000421-14:20 GMT-8 Ron Pinkas <Ron@Profit-Master.com>
* source/compiler/hvm.c
     + Added support for new PCodes HB_P_PUSHBYTE, and HB_P_PUSHONE
     + Added void hb_vmPushOne( void ), void hb_vmPushZero( void ) and void hb_vmPushByte( BYTE )
     * Optimized HB_P_ZERO by using hb_vmPushZero()

   * source/compiler/harbour.c
     - REMMED not used hb_compGenPushInteger()
     * Optimized hb_compGenPushLong() to USE HB_P_ZERO, HB_P_ONE, HB_P_PUSHBBYTE, HB_P_PUSHBINT, or , HB_P_PUSHLONG as needed.
     * Optimized few pairs of hb_compGenPCode1() to use hb_compGenPCode2() instead.

   * source/compiler/genc.c
     + Added support for PCodes HB_P_PUSHBYTE, and HB_P_PUSHONE

   * source/compiler/hbpcode.c
     + Added hb_compGenPCode2( BYTE, BYTE )

   * source/compiler/harbour.y
     * Optimized few pairs of hb_compGenPCode1() to use hb_compGenPCode2() instead.

   * source/include/hbpcode.h
     + Added PCodes HB_P_PUSHBYTE, and HB_P_PUSHONE

   * source/include/hbvm.h
     + Added:
        extern void    hb_vmPushOne( void ); /* pushes a 0 onto the stack */
        extern void    hb_vmPushZero( void ); /* pushes a 1 onto the stack */
        extern void    hb_vmPushByte( BYTE bNumber ); /* pushes a integer number onto the stack */

   * include/hbcomp.h
     - Removed #ifef of GenObj32
2000-04-21 21:51:21 +00:00
Viktor Szakats
75eb1fcb3e 20000421-00:54 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-20 22:50:55 +00:00
Viktor Szakats
4e36c6b41f 20000419-00:28 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-18 23:30:42 +00:00
Ron Pinkas
68f8243cbe 20000419-05:30 GMT-8 Ron Pinkas <Ron@Profit-Master.com>
* source/compiler/hvm.c
     + Added PCodes HB_P_JAMPSHORT, HB_P_JAMPSHORTFALSE and HB_P_JAMPSHORTTRUE

   * source/compiler/harbour.c
     + Added hb_compOptimizeJumps() - Jumps Optimizer.
     + Added hb_compSort_ULONG() Call back function for qsort - used in the Jump Optimizer.
     + Added support for new elements of _FUNC.
     * Modified hb_compGen*Jump*() to support Short Normal and Far Jumps.

   * source/include/hbexprb.c
     * Reverted handling of .OR. .AND. and IIF() to use default (FAR) JUMPs - note the use of (0) when calling hb_compGenJump*().

   * source/compiler/genc.c
     + Added support for HB_P_JAMPSHORT, HB_P_JAMPSHORTFALSE and HB_P_JAMPSHORTTRUE

   * source/compiler/cmdcheck.c
     + Added support for new switch -J[0|1] default is J1 which enables the Jump Optimizer - Use -J0 to disable.

   * source/compiler/hbgenerr.c
     - Removed following errors:
        "Jump offset too long for HB_P_JUMP needed HB_P_JUMPFAR",
        "Jump offset too long for HB_P_JUMPTRUE needed HB_P_JUMPFARTRUE",
        "Jump offset too long for HB_P_JUMPFALSE needed HB_P_JUMPFARFALSE",

     * Changed "HB_P_JUMPx not found when fixing offset" to "Jump PCode not found"

   * source/include/hberrors.h
     - Removed following defines:
   	#define HB_COMP_ERR_INVALID_JUMPTRUE            46
   	#define HB_COMP_ERR_INVALID_JUMPFALSE           47
   	#define HB_COMP_ERR_JUMP_NOT_FOUND              48

   * source/include/hberrors.h
     + Added following to __FUNC
   	ULONG  * pNOOPs;                 /* pointer to the NOOP array */
   	ULONG  * pJumps;                 /* pointer to the Jumps array */
   	int    iNOOPs;                   /* NOOPs Counter */
   	int    iJumps;                   /* Jumps Counter */

   * source/include/hbpcode.h
     + Added HB_P_JAMPSHORT, HB_P_JAMPSHORTFALSE and HB_P_JAMPSHORTTRUE
2000-04-18 12:41:08 +00:00
Viktor Szakats
43c3eae12a 20000417-06:32 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-17 04:32:42 +00:00
Viktor Szakats
2e05c047a3 20000417-06:32 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-17 04:29:09 +00:00
Viktor Szakats
441d73387e 20000417-05:49 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-17 04:20:39 +00:00
Viktor Szakats
57a344f3d5 20000417-05:49 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-17 04:02:29 +00:00
Viktor Szakats
7175a8d821 20000417-05:49 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-17 03:55:32 +00:00
Viktor Szakats
d83652a4a0 20000417-05:49 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-17 03:54:17 +00:00
Viktor Szakats
c9cc857853 20000415-18:23 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-15 16:20:46 +00:00
Viktor Szakats
8440262da1 20000415-12:38 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-15 10:36:42 +00:00
Viktor Szakats
ce2c427df3 20000415-05:12 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-15 03:09:29 +00:00
Viktor Szakats
40025c2fe8 20000414-22:03 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-14 20:01:22 +00:00
Ron Pinkas
d5fdbc0e34 20000413-19:30 GMT-8 Ron Pinkas <Ron@Profit-Master.com>
* source/compiler/hvm.c
     * Added FAR support to HB_P_SEQBEGIN and HB_P_SEQEND

   * source/compiler/harbour.c
     * Modified hb_compGenJumpThere() to revert back to "short" JUMPs when fixing the jumps, it will than use HB_P_NOOP for the unused 3rd byte.
     * It now supports all variations of JUMP including SEQBEGIN and  SEQEND as well as the logig to not interfere with "short" JUMPs.
     + Added more error handling to hb_compGenJumpThere()

   * source/include/hbexprb.c
     * Modified handling of .OR. .AND. and IIF() to use "short" JUMPs - note the use of -1 when calling hb_compGenJumpXXX().

   * source/compiler/genc.c
     + Added support for HB_P_NOOP (was missing!)
     * Modified HB_P_SEQBEGIN and HB_P_SEQEND to support FAR jumps

   * source/compiler/hbgenerr.c
     + Added following errors:
        "Jump offset too long for HB_P_JUMP needed HB_P_JUMPFAR",
        "Jump offset too long for HB_P_JUMPTRUE needed HB_P_JUMPFARTRUE",
        "Jump offset too long for HB_P_JUMPFALSE needed HB_P_JUMPFARFALSE",
        "HB_P_JUMPx not found when fixing offset"

   * source/include/hbexprb.c
     + Added following defines:
	#define HB_COMP_ERR_INVALID_JUMP                45
	#define HB_COMP_ERR_INVALID_JUMPTRUE            46
	#define HB_COMP_ERR_INVALID_JUMPFALSE           47
	#define HB_COMP_ERR_JUMP_NOT_FOUND              48
2000-04-14 02:59:49 +00:00
Viktor Szakats
0477819e8a 20000414-03:08 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-14 01:06:14 +00:00
Ron Pinkas
be8587e794 20000413-01:30 GMT-8 Ron Pinkas <Ron@Profit-Master.com>
* source/include/hbpcode.h
     + Added HB_P_JUMPFAR, HB_P_JUMPFARFALSE, and HB_P_JUMPFARTRUE

   * source/compiler/hvm.c
     + Added support for HB_P_JUMPFAR, HB_P_JUMPFARFALSE, and HB_P_JUMPFARTRUE to support longer than 2^15 jumps.

   * source/compiler/harbour.c
     * Enhanced hb_compGenJump(), hb_compGenJumpFalse(), hb_compGenJumpTrue(), hb_compGenJumpHere() and hb_compGenJumpThere()
       to utilize HB_P_JUMPFAR, HB_P_JUMPFARFALSE, and HB_P_JUMPFARTRUE to support longer than 2^15 jumps.

   * source/compiler/genc.c
     + Added support for HB_P_JUMPFAR, HB_P_JUMPFARFALSE, and HB_P_JUMPFARTRUE to support longer than 2^15 jumps.
2000-04-13 09:46:07 +00:00
Viktor Szakats
f9fb27a7d7 20000413-02:55 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-13 00:52:14 +00:00
Viktor Szakats
7d0c4f2d05 20000413-02:14 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-13 00:11:26 +00:00
Viktor Szakats
6621e6ff4b 20000412-11:01 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-12 08:59:22 +00:00
Viktor Szakats
3a346bf715 20000411-21:08 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-11 19:10:18 +00:00
Viktor Szakats
e12b9dd9e9 20000411-13:12 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-11 11:17:46 +00:00
Viktor Szakats
a4bbacc2d4 20000411-03:04 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-11 01:02:00 +00:00
Viktor Szakats
47a17d7ece 20000411-00:24 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-10 22:33:43 +00:00
Viktor Szakats
bf2a6741b3 20000409-03:48 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-09 02:12:16 +00:00
Viktor Szakats
c899c8d85f 20000404-13:00 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-04 10:44:09 +00:00
Viktor Szakats
c7333102d0 20000404-03:24 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-04 01:27:00 +00:00
Viktor Szakats
f8505455b2 20000403-11:01 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-03 09:03:16 +00:00
Viktor Szakats
458ae9564a 20000403-11:01 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-03 09:01:09 +00:00
Viktor Szakats
0279d0eb0e 20000403-04:47 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-03 02:45:48 +00:00
Viktor Szakats
83c6681014 20000403-02:11 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-03 00:09:34 +00:00
Viktor Szakats
6ac91e4f1a 20000403-01:26 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-02 23:26:02 +00:00
Viktor Szakats
b82af55dbf 20000402-22:32 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-02 20:54:13 +00:00
Viktor Szakats
c3f4bc639b 20000402-19:37 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-02 17:35:52 +00:00
Viktor Szakats
ccc8653a6a 20000402-18:50 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-02 16:46:37 +00:00
Viktor Szakats
7a8980eaa6 20000402-16:17 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-02 14:17:28 +00:00
Viktor Szakats
c23f585ad1 20000402-15:59 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-02 13:58:28 +00:00
Viktor Szakats
e322d0d408 20000401-18:00 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-04-01 16:05:00 +00:00
Viktor Szakats
06f719cfbd 20000331-23:11 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-03-31 21:17:04 +00:00
Viktor Szakats
8743414afc 20000331-19:24 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-03-31 17:22:08 +00:00
Viktor Szakats
f32b908bef 20000331-19:06 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-03-31 17:05:27 +00:00
Paul Tucker
3c79f6d7f4 20000330-13:25 EST <ptucker@sympatico.ca> 2000-03-30 18:24:22 +00:00
Viktor Szakats
b5a60b92d0 20000328-23:04 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-03-28 21:10:10 +00:00
Viktor Szakats
d744a5319a 20000327-21:35 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-03-27 19:42:04 +00:00
Viktor Szakats
b1f14b661e 20000327-01:24 GMT+1 Victor Szakats <info@szelvesz.hu> 2000-03-26 23:34:42 +00:00