Re: [Tinycc-devel] Patch: add option -mms-bitfields

2016-11-22 Thread Richard Brett
If you're asking opinions I would rather the default is set -mms-bitfields if compiling on Windows, and -no-mms-bitfields (?) on Linux. That way there is no breaking change for some Windows users. Then the only impact would be to non MSVC users on Windows who are wanting to share

Re: [Tinycc-devel] Weird bitfield size handling, discrepancy with gcc

2016-10-17 Thread Richard Brett
Hello Is this really a problem for tcc? An old version of VC produces the same sizes as tcc. The spec seems to say (not sure I'm reading this right, first time I've read the spec) "An implementation may allocate any addressable storage unit large enough to hold a bitfield.snip.

Re: [Tinycc-devel] Compiling to memory

2016-07-24 Thread Richard Brett
Hi Philip The process I use is as follows (simplified from actual, error checking removed etc) // set we want code in memory tcc_set_output_type(state, TCC_OUTPUT_MEMORY); // compile the program tcc_compile_string(state, Program); // Add symbols for functions in current program, if any

[Tinycc-devel] More details when using tcc_set_error_func

2016-04-10 Thread Richard Brett
Hello If I use the function tcc_set_error_func() the function that gets called has a text string describing the error. Is there any standardisation of this message line - sometimes it seems to be :19: xyz Othertimes it has more prefixes to the message. What I am really after is the