Blog post !
Re: Blog post !
Why does
Goto end;
End:
Appear in the syntax conversion?
How does the debugger work with the C emit option vs FASM?
Goto end;
End:
Appear in the syntax conversion?
How does the debugger work with the C emit option vs FASM?
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Re: Blog post !
goto end: is always generated when using ProcedureReturn, even if there is no code in between (last statement of the procedure). It is suppressed by the C optimizer, don't worry. The debugger works the same, but some functions/check are not yet supported.
- NicTheQuick
- Addict
- Posts: 1226
- Joined: Sun Jun 22, 2003 7:43 pm
- Location: Germany, Saarbrücken
- Contact:
Re: Blog post !
If you have a bigger project with lots of includes, is the Purebasic compiler going to crunch that into a single C code file? Or will the include structure persists? Because only that way you will have fast compiling times when you change just one file.
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
Re: Blog post !
Yes, makes sense for the C optimizer.
I also like the C format you showed. Allman style is by far the easiest to read.
NicTheQuick - SQLite also does an amalgamated C file prior to compilation and it is indeed slow to compile.
I also like the C format you showed. Allman style is by far the easiest to read.
NicTheQuick - SQLite also does an amalgamated C file prior to compilation and it is indeed slow to compile.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
- NicTheQuick
- Addict
- Posts: 1226
- Joined: Sun Jun 22, 2003 7:43 pm
- Location: Germany, Saarbrücken
- Contact:
Re: Blog post !
Nice. I didn't know about the names of these styles. I prefer K&R. It's more compact and also easy to read.skywalk wrote: ↑Fri Apr 23, 2021 1:16 pmI also like the C format you showed. Allman style is by far the easiest to read.
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
Re: Blog post !
Trust me, K&R is horrible when the code gets large and inline comments and multiple developers.
Allman solves all that noise.
Allman solves all that noise.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Re: Blog post !
Fred's code was Allman sooooo, 2=2, tie!
But look to the polling and see Allman wins there too.
But look to the polling and see Allman wins there too.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
- NicTheQuick
- Addict
- Posts: 1226
- Joined: Sun Jun 22, 2003 7:43 pm
- Location: Germany, Saarbrücken
- Contact:
Re: Blog post !
Well, maybe the poll is that weird with its 7 digit percentage numbers because he uses Allman
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
Re: Blog post !
I didn't know these styles had names (thanks skywalk)
I also still prefer Allman to K&R although the latter is more readable when folded.
However, when I look at the examples from a distance, GNU indent style seems to be the best (PB display vertical lines, so more easy to read).
@Fred: Do you have tested with PellesC compiler (for Windows version). It's very fast but is he compatible with libs ? and is license and author agree ?
I also still prefer Allman to K&R although the latter is more readable when folded.
However, when I look at the examples from a distance, GNU indent style seems to be the best (PB display vertical lines, so more easy to read).
@Fred: Do you have tested with PellesC compiler (for Windows version). It's very fast but is he compatible with libs ? and is license and author agree ?
Re: Blog post !
Hi!
I've just read about the plans to implement a c backend.
I enjoy!
I've just read about the plans to implement a c backend.
I enjoy!
Re: Blog post !
Unfortuntately, PureBasic is not built at all to generate several objs, so it is not possible.NicTheQuick wrote: ↑Fri Apr 23, 2021 1:03 pm If you have a bigger project with lots of includes, is the Purebasic compiler going to crunch that into a single C code file? Or will the include structure persists? Because only that way you will have fast compiling times when you change just one file.
Re: Blog post !
Do you suggest we collapse our lib's to a dll or can we create static libs in the future?
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Re: Blog post !
Will we be able to procedurereturn structs?
In C it's possible, so that could be a thing, or?
In C it's possible, so that could be a thing, or?
-
- Addict
- Posts: 1443
- Joined: Wed Nov 12, 2008 5:01 pm
- Location: Russia