Author Topic: A New version of Huc  (Read 1324 times)

touko

  • Hero Member
  • *****
  • Posts: 953
A New version of Huc
« on: June 11, 2014, 08:30:34 AM »
http://pcedev.blockos.org/viewtopic.php?f=5&t=99&sid=4271ff003c2cb9398848a023e55028dd

 :dance:

I don't know, who did it ..

Edit: i found it ,it's Ulrich Hecht ..
« Last Edit: June 11, 2014, 08:35:43 AM by touko »

Arkhan

  • Hero Member
  • *****
  • Posts: 14142
  • Fuck Elmer.
    • Incessant Negativity Software
Re: A New version of Huc
« Reply #1 on: June 11, 2014, 08:45:52 AM »
Good thing this arrived after Atlantean is basically done, lol.

ugh.

but, f*ck yes nonetheless.
[Fri 19:34]<nectarsis> been wanting to try that one for awhile now Ope
[Fri 19:33]<Opethian> l;ol huge dong

I'm a max level Forum Warrior.  I'm immortal.
If you're not ready to defend your claims, don't post em.

nodtveidt

  • Guest
Re: A New version of Huc
« Reply #2 on: June 11, 2014, 09:31:44 AM »
Is there an actual download for it?

EDIT: nvm, it has a download option on the righthand side.
« Last Edit: June 11, 2014, 10:24:36 AM by The Old Rover »

Arkhan

  • Hero Member
  • *****
  • Posts: 14142
  • Fuck Elmer.
    • Incessant Negativity Software
Re: A New version of Huc
« Reply #3 on: June 11, 2014, 12:48:19 PM »
lol I am curious how compatible it is with stuff that was written with current HuC.

I'm betting if I send Atlantean through it, we will get a giant mess.
[Fri 19:34]<nectarsis> been wanting to try that one for awhile now Ope
[Fri 19:33]<Opethian> l;ol huge dong

I'm a max level Forum Warrior.  I'm immortal.
If you're not ready to defend your claims, don't post em.

spenoza

  • Hero Member
  • *****
  • Posts: 2751
Re: A New version of Huc
« Reply #4 on: June 11, 2014, 02:49:44 PM »
Good thing you're so close to being done you don't need this for Atlantean. Still, you've got your source. Could be an exercise in experimentation. What will the new HuC do to this thing I know works?
<a href="http://www.pcedaisakusen.net/2/34/103/show-collection.htm" class="bbc_link" target="_blank">My meager PC Engine Collection so far.</a><br><a href="https://www.pcenginefx.com/forums/" class="bbc_link" target="_blank">PC Engine Software Bible</a><br><a href="http://www.racketboy.com/forum/" c

ParanoiaDragon

  • Hero Member
  • *****
  • Posts: 4619
Re: A New version of Huc
« Reply #5 on: June 11, 2014, 02:54:21 PM »
lol I am curious how compatible it is with stuff that was written with current HuC.

I'm betting if I send Atlantean through it, we will get a giant mess.

Then you could release that has an Extra-Special Edition! :D

Arkhan

  • Hero Member
  • *****
  • Posts: 14142
  • Fuck Elmer.
    • Incessant Negativity Software
Re: A New version of Huc
« Reply #6 on: June 11, 2014, 04:08:06 PM »
That's kind of what I intend to do once Atlantean is actually done. 

Atlantean will be the final proof that you can complete a HuCard PCE game with HuC, despite everyone saying it's a giant shitheap. 

lol.

and then I'll run the code through NuC, and be like oh wow.  This would've saved me about a year.
[Fri 19:34]<nectarsis> been wanting to try that one for awhile now Ope
[Fri 19:33]<Opethian> l;ol huge dong

I'm a max level Forum Warrior.  I'm immortal.
If you're not ready to defend your claims, don't post em.

nodtveidt

  • Guest
Re: A New version of Huc
« Reply #7 on: June 12, 2014, 06:23:57 AM »
Hrm, source only, and I have not yet tried to build it in gcc/mingw... will try later today though.

TheOldMan

  • Hero Member
  • *****
  • Posts: 958
Re: A New version of Huc
« Reply #8 on: June 12, 2014, 06:59:59 AM »
Let us know how it goes.  I trashed my cygwin install, and haven't tried yet under (an old version of) MingW.
I'm interested to see what optimizations it has made to the pce code.

Arkhan

  • Hero Member
  • *****
  • Posts: 14142
  • Fuck Elmer.
    • Incessant Negativity Software
Re: A New version of Huc
« Reply #9 on: June 12, 2014, 07:13:49 AM »
I'm going to start banging away at it after I finish Atlantean.   I'd love to use it FOR Atlantean, but since it's literally like, done, it'd be more trouble than it's worth lol.

Maybe we can feed the pre-optimized Insanity through it, and see if it runs like shit still!

yeahhhh!
[Fri 19:34]<nectarsis> been wanting to try that one for awhile now Ope
[Fri 19:33]<Opethian> l;ol huge dong

I'm a max level Forum Warrior.  I'm immortal.
If you're not ready to defend your claims, don't post em.

nodtveidt

  • Guest
Re: A New version of Huc
« Reply #10 on: June 12, 2014, 02:44:07 PM »
Code: [Select]
main.c: In function 'dumpglbs':
main.c:606:3: error: implicit declaration of function 'fmemopen' [-Werror=implic
it-function-declaration]
   data = fmemopen(data_buf, DATABUFSIZE, "w");
   ^
main.c:606:8: error: assignment makes pointer from integer without a cast [-Werr
or]
   data = fmemopen(data_buf, DATABUFSIZE, "w");
        ^
main.c:608:10: error: assignment makes pointer from integer without a cast [-Wer
ror]
   rodata = fmemopen(rodata_buf, DATABUFSIZE, "w");
          ^
cc1.exe: all warnings being treated as errors
make[4]: *** [main.o] Error 1
make[4]: Leaving directory `/c/huc-master/src/huc'
make[3]: *** [huc] Error 2
make[3]: Leaving directory `/c/huc-master/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/c/huc-master/src'
make[1]: *** [src] Error 2
make[1]: Leaving directory `/c/huc-master'
make: *** [all] Error 2

nodtveidt

  • Guest
Re: A New version of Huc
« Reply #11 on: June 12, 2014, 03:12:26 PM »
The included docs say that it does not work with mingw. That's silly. :(

nodtveidt

  • Guest
Re: A New version of Huc
« Reply #12 on: June 12, 2014, 04:01:54 PM »
Doesn't build through cygwin either.

Code: [Select]
dave@elsiedell ~/huc-master
$ make
make[1]: Entering directory `/c/cygwin64/home/dave/huc-master'

 -----> make all in src
/usr/bin/make --directory=src all
make[2]: Entering directory `/c/cygwin64/home/dave/huc-master/src'
make[3]: Entering directory `/c/cygwin64/home/dave/huc-master/src'

 -----> make all in huc
/usr/bin/make --directory=huc all
make[4]: Entering directory `/c/cygwin64/home/dave/huc-master/src/huc'
cc  -Werror -Wall -g -O2 -Wno-char-subscripts -c code.c -o code.o
cc  -Werror -Wall -g -O2 -Wno-char-subscripts -c const.c -o const.o
cc  -Werror -Wall -g -O2 -Wno-char-subscripts -c data.c -o data.o
cc  -Werror -Wall -g -O2 -Wno-char-subscripts -c error.c -o error.o
cc  -Werror -Wall -g -O2 -Wno-char-subscripts -c expr.c -o expr.o
cc  -Werror -Wall -g -O2 -Wno-char-subscripts -c function.c -o function.o
cc  -Werror -Wall -g -O2 -Wno-char-subscripts -c gen.c -o gen.o
cc  -Werror -Wall -g -O2 -Wno-char-subscripts -c io.c -o io.o
cc  -Werror -Wall -g -O2 -Wno-char-subscripts -c lex.c -o lex.o
cc  -Werror -Wall -g -O2 -Wno-char-subscripts -c main.c -o main.o
main.c: In function 'dumpglbs':
main.c:606:3: error: implicit declaration of function 'fmemopen' [-Werror=implic                                                                                                                it-function-declaration]
   data = fmemopen(data_buf, DATABUFSIZE, "w");
   ^
main.c:606:8: error: assignment makes pointer from integer without a cast [-Werr                                                                                                                or]
   data = fmemopen(data_buf, DATABUFSIZE, "w");
        ^
main.c:608:10: error: assignment makes pointer from integer without a cast [-Wer                                                                                                                ror]
   rodata = fmemopen(rodata_buf, DATABUFSIZE, "w");
          ^
cc1.exe: all warnings being treated as errors
make[4]: *** [main.o] Error 1
make[4]: Leaving directory `/c/cygwin64/home/dave/huc-master/src/huc'
make[3]: *** [huc] Error 2
make[3]: Leaving directory `/c/cygwin64/home/dave/huc-master/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/c/cygwin64/home/dave/huc-master/src'
make[1]: *** [src] Error 2
make[1]: Leaving directory `/c/cygwin64/home/dave/huc-master'
make: *** [all] Error 2

TheOldMan

  • Hero Member
  • *****
  • Posts: 958
Re: A New version of Huc
« Reply #13 on: June 12, 2014, 04:12:23 PM »
I saw the MingW blurb, which is one reason I havent' snagged it yet. I do vaguely remember cygwin and mingw going seperate ways after Win7, so that may be the reason.

Wonder if he forgot an include file (with the def of fmemopen() ), or if fmemopen() isn't available in that version of cygwin ??? I've had similar things happen with strndup(), so you may need a specific version of cygwin to build it... <sigh>

...or we could just turn off 'warnings as errors' and see what happens :)

nodtveidt

  • Guest
Re: A New version of Huc
« Reply #14 on: June 12, 2014, 04:25:56 PM »
From /usr/include/stdio.h:

Code: [Select]
/*
 * Routines in POSIX 1003.1:200x.
 */

#ifndef __STRICT_ANSI__
# ifndef _REENT_ONLY
#  ifndef dprintf
int _EXFUN(dprintf, (int, const char *__restrict, ...)
               _ATTRIBUTE ((__format__ (__printf__, 2, 3))));
#  endif
FILE * _EXFUN(fmemopen, (void *__restrict, size_t, const char *__restrict));
/* getdelim - see __getdelim for now */
/* getline - see __getline for now */
FILE * _EXFUN(open_memstream, (char **, size_t *));
#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200809
int _EXFUN(renameat, (int, const char *, int, const char *));
#endif
int _EXFUN(vdprintf, (int, const char *__restrict, __VALIST)
               _ATTRIBUTE ((__format__ (__printf__, 2, 0))));
# endif
#endif

so it's not like it's not there. I think the makefile might be misconfigured.