Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - jbk

Pages: [1]
1
BCX Accessories / IDE for BCX ?
« on: October 30, 2020, 01:43:02 PM »
I know that BCX comes with a fine editor named JFE, does anyone use other IDE's with BCX ?
I am interested for an alternative because JFE's author is nowhere to be found and the latest release is from around 2010

2
Off-Topic Discussions / visual studio 2019, how to use fpu?
« on: August 23, 2020, 09:30:07 AM »
does anyone know if there's a compiler option to use the fpu and not sse?
it seems that sse is used by default and that seems to be the only option, irritating >:(
the reason is that I would like to build the muParser dll using the fpu because errors accumulate a lot if using sse, try this
https://github.com/beltoforion/muparser
Code: [Select]
DIM x  AS DOUBLE
DIM y  AS DOUBLE
DIM EvalResult  AS DOUBLE
DIM sum  AS DOUBLE
DIM i AS INTEGER
sum=0
    for i = 0 to 10000
        x=10
        y=10.345
        EvalResult = (cos( 20 ) *  sin( 5  )  ^ 3  * 21 * log(  123 ) / 2.5) * x * y
        sum = sum + EvalResult
    next
    PRINT sum
sse  = -15048593.39994392
fpu  = -15048593.39994568
true = -15048593.3999456822

3
Getting Started with BCX / newbie here, need help in compiling to 64-bit
« on: February 02, 2020, 06:25:21 PM »
after some trial an error I managed to compile to 32-bit, but how do I compile for 64-bit?
specifically this web app here https://bcxbasiccoders.com/smf/index.php?topic=94.msg340#msg340
I have Mingw32 and Mingw64 (msys2), PellesC x64 and lcc x64 installed
I edited PW.bat replacing x86 with x64 but I get the error "BCX_SlideShow.c(443): error #2206: No support for inline assembly code on this target machine."
PW.bat modified
Code: [Select]
setlocal
@rem Created with Bldbat v.3.0.0 for PellesC (GUI)
@ECHO OFF
IF NOT EXIST %1.c GOTO usage
CALL "C:\Program Files\PellesC\Bin\povars64.bat"
IF EXIST %1.res GOTO res
IF NOT EXIST "res\%~1.rc" GOTO nores
ECHO Compiling resources.....
"C:\Program Files\PellesC\Bin\porc.exe" "res\%~1.rc" /i res /fo "%~1.res"
:res
IF EXIST %1.res SET PRES="%~1.res"
:nores
ECHO Compiling "%~1.c"..........
"C:\Program Files\PellesC\Bin\pocc.exe" /W0 /Ot /Go /Gd /Ze /Zx /Tx64-coff "%~1.c"
ECHO Linking ................
"C:\Program Files\PellesC\Bin\polink.exe" /release /machine:x64 /subsystem:windows "%~1.obj" %PRES% %2 %3 %4 %5 %6 %7 %8 %9 /out:"%~1.exe"
ECHO Finished!
IF EXIST "%~1.obj" del "%~1.obj"
GOTO done
:usage
ECHO **************************************************************
ECHO  Usage:  PW.BAT MainFile  ExtraFile1 ExtraFile2 ExtraFile3
ECHO  Note:   ExtraFiles can be .libs, .res , .obj
ECHO          Compile a GUI mode program with Pelle's C.
ECHO **************************************************************
:done
endlocal

Pages: [1]