The following warnings occurred:
Warning [2] Undefined array key 198582 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 198680 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 198681 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 199231 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $thread - Line: 295 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 295 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Trying to access array offset on value of type null - Line: 295 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 295 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $fid - Line: 295 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 295 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 199231 - Line: 331 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 331 errorHandler->error_callback
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 304 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $theme - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Trying to access array offset on value of type null - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $theme - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Trying to access array offset on value of type null - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $lang - Line: 5 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 5 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Attempt to read property "messages_in_thread" on null - Line: 5 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 5 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks





HPGCC questions



#5

I'm interested in learning to use C/C++ on the 50g and porting some small programs I've written over the years. Both HPGCC 2.0SP2 and HPGCC3 are available. Which one should I start with? Are there any advantages and disadvantages to using one version over the other? They seem to have different origins, or at least HPGCC3 is a rewrite with a revised license if I understood correctly.


#6

I believe that HPGCC3 creates stand-alone programs, which is an improvement over HPGCC 2.0 which requires a library on the 50g. The lib can convert the program to stand-alone, or it can launch the program itself.

I think I also heard that HPGCC3 has a more extensive library.

On the plus side for HPGCC 2.0, it's been around longer so it may be more stable. Also, to make a shameless plug, my HPObjects library currently only works with HPGCC 1.1 and 2.0. The library lets you easily access and convert HP calculator objects (numbers, integers, lists, strings etc) into C equivalents, and back again. The library that comes with HPGCC 2.0 comes with some of this functionality, but the interfaces are inconsistent and only a few objects are supported.

Here are some handy links:

Egan Ford's excellent HPGCC 2 tutorial.

My HPObjects library

Good luck! I think you'll find it quite rewarding. HPGCC programs typically run 100 times faster than User RPL programs. On the other hand, they are typically about 100 times larger. On the third hand, you can always copy the actual program to an SD card, and replace it on the calculator with a small stub program that recalls it from the card and runs it. This saves you the space in HOME, but it still takes a large amount of RAM to run.

Feel free to contact me for help with HPGCC 2 programming.

Dave


#7

Quote:
I believe that HPGCC3 creates stand-alone programs, which is an improvement over HPGCC 2.0 which requires a library on the 50g. The lib can convert the program to stand-alone, or it can launch the program itself.

HPGCC 3 requires a custom ROM on the 50g. This is not a problem unless you plan to redistribute your code. At that is not a problem if all target machines have the custom ROM. Whereas HPGCC 2 will run on unmodified machines.

HPGCC 3 is faster, or at least the beta versions were that I tested a while ago. I wrote some pretty fast factorization programs with HPGCC 3. I could overclock the processor to 192 MHz.

I'd start with HPGCC 3 since that is the current supported version from the developers and fallback to HPGCC 2 if you want to leave your 50g with the HP blessed ROM.

P.S. I've had the HPGCC 3 ROMs on my 50g for years without any issues and I could still run HPGCC 2 code.

Edited: 29 Sept 2011, 10:09 p.m.


#8

Thanks for both responses. I decided to give HPGCC3 a whirl and was able to get it compiled into the 2.15 ROM and loaded this weekend. The tutorial on hpgcc3.org was helpful as well.


Possibly Related Threads…
Thread Author Replies Views Last Post
  HPGCC Documentation Clint Weathers 1 916 06-02-2011, 07:28 AM
Last Post: Bart (UK)
  Mathematica code with C + HPGCC Sujith Abraham 3 1,240 10-01-2010, 11:01 AM
Last Post: Sujith Abraham
  HPGCC Jan Kromhout 0 706 09-10-2009, 04:43 PM
Last Post: Jan Kromhout
  HPGCC and Steamtable Calculations (IF97) Jan Kromhout 7 2,539 09-09-2009, 01:02 PM
Last Post: David Hayden
  HPGCC.ORG ?????? Jan Kromhout 1 929 09-06-2009, 02:46 AM
Last Post: Howard Owen
  Extend your 50g with C (HPGCC 2.0 SP2) Jan Kromhout 1 885 09-03-2009, 09:46 AM
Last Post: Egan Ford
  Error message in Hpapine, HPGCC,XP Jan Kromhout 2 984 08-30-2009, 11:53 AM
Last Post: Jan Kromhout
  HPGCC 2 Tutorial Updated with Vista, OS/X, More Examples Egan Ford 0 765 12-01-2008, 02:02 AM
Last Post: Egan Ford
  HPGCC 2.0SP2 C Tutorial Updated Egan Ford 0 728 05-30-2008, 01:17 AM
Last Post: Egan Ford

Forum Jump: