Search found 34 matches

by BurghHouse
Dec 09, 2013 9:29
Forum: Community Discussion
Topic: Error: operand size mismatch for `movupd'
Replies: 16
Views: 4001

Re: Error: operand size mismatch for `movupd'

I can reproduce it when using -fpu sse -vec 2, it looks like it's a bug in fbc's SSE emitter. (also the compiler crash when using -vec 2 without -fpu sse, that's probably a separate issue) That was what I'd concluded too. I don't know how to log such a bug but I guess you do so do you mind logging ...
by BurghHouse
Dec 07, 2013 18:49
Forum: Community Discussion
Topic: Error: operand size mismatch for `movupd'
Replies: 16
Views: 4001

Re: Error: operand size mismatch for `movupd'

If I remove "-fpu sse" I get: FreeBASIC Compiler - Version 0.90.1 (07-17-2013) for win32 Copyright (C) 2004-2013 The FreeBASIC development team. standalone compiling: J:\Burgh House Software\Projects\SimplePhotoResize\BUG_ResultSizeDataItem_2.BAS -o J:\Burgh House Software\Projects\SimpleP...
by BurghHouse
Dec 07, 2013 18:45
Forum: Community Discussion
Topic: Error: operand size mismatch for `movupd'
Replies: 16
Views: 4001

Re: Error: operand size mismatch for `movupd'

PS compile options are:
-v -w all -fpu sse -vec 2
by BurghHouse
Dec 07, 2013 18:40
Forum: Community Discussion
Topic: Error: operand size mismatch for `movupd'
Replies: 16
Views: 4001

Re: Error: operand size mismatch for `movupd'

Right, I've reduced it to a simple program that exhibits the error. The following is the entire code: Const MinSizeDataItemDisplaySizePX = 50.0 Dim Shared As Integer ControlBoxBackground Type ResultSizeDataItemType Desc As String FullDesc As String SizeMM_X As Double SizeMM_Y As Double ImageXmin As ...
by BurghHouse
Dec 07, 2013 18:32
Forum: Community Discussion
Topic: Error: operand size mismatch for `movupd'
Replies: 16
Views: 4001

Re: Error: operand size mismatch for `movupd'

One of the code segments causing the error is this one: '''' reminder - this is how the structure is defined Type ResultSizeDataItemType Desc As String FullDesc As String SizeMM_X As Double SizeMM_Y As Double ImageXmin As Integer ImageYmin As Integer ImageXmax As Integer ImageYmax As Integer BoxText...
by BurghHouse
Dec 07, 2013 18:20
Forum: Community Discussion
Topic: Error: operand size mismatch for `movupd'
Replies: 16
Views: 4001

Re: Error: operand size mismatch for `movupd'

Compiler version 0.90.1, OS Wiondows XP Sp3
I'm not using inline asm, just vanilla FreeBASIC statements
I'm not sure how I act upon MichealW's suggestion
by BurghHouse
Dec 06, 2013 17:16
Forum: Community Discussion
Topic: Error: operand size mismatch for `movupd'
Replies: 16
Views: 4001

Re: Error: operand size mismatch for `movupd'

Bit more (useful?) info: In my program I have the following TYPE definition Type ResultSizeDataItemType Desc As String FullDesc As String SizeMM_X As Double SizeMM_Y As Double ImageXmin As Integer ImageYmin As Integer ImageXmax As Integer ImageYmax As Integer BoxText As String BoxBackground As Integ...
by BurghHouse
Dec 06, 2013 17:08
Forum: Community Discussion
Topic: Error: operand size mismatch for `movupd'
Replies: 16
Views: 4001

Re: Error: operand size mismatch for `movupd'

If it helps, the bad instruction follows a

Code: Select all

call _fb_StrAssign@20

and the actual instructions the compiler is objecting to are

Code: Select all

movupd qword Ptr [eax+24], xmm6

and

Code: Select all

movupd xmm7, qword Ptr [eax+24]
movupd qword Ptr [ebx+24], xmm7
by BurghHouse
Dec 06, 2013 17:01
Forum: Community Discussion
Topic: Error: operand size mismatch for `movupd'
Replies: 16
Views: 4001

Error: operand size mismatch for `movupd'

Sometimes - and only occasionally - the compiler compiles OK but the linker rejects the .ASM code with the above error. Obviously I can re-compile with -R and see the .ASM, and yes indeed there is a movupd instruction at the given line number but then its down to me to figure out what I have to chan...
by BurghHouse
Nov 25, 2013 12:01
Forum: Community Discussion
Topic: New ASCII-only Lcase/Ucase functions?
Replies: 45
Views: 6126

Re: New ASCII-only Lcase/Ucase functions?

Put simply, then, I infer that, once you have #UNDEFed a FreeBASIC function, there is then no way to reference it. That's a shame. Could this be considered for a future version? It would be really useful to be able to produce a customised version of the standard functions in this way. Given that dod...
by BurghHouse
Nov 23, 2013 20:19
Forum: Community Discussion
Topic: New ASCII-only Lcase/Ucase functions?
Replies: 45
Views: 6126

Re: New ASCII-only Lcase/Ucase functions?

There's no way to set a default mode I tried this: #UnDef Ucase #Macro Ucase(mystring) fb.Ucase(mystring, 1) #EndMacro but it wouldn't compile (couldn't find 'fb'). Am I on the right lines? What I don't want to have to do is track through all my code swapping ucase() for ucase(, 1) and lcase() for ...
by BurghHouse
Nov 11, 2013 16:12
Forum: Community Discussion
Topic: New ASCII-only Lcase/Ucase functions?
Replies: 45
Views: 6126

Re: New ASCII-only Lcase/Ucase functions?

BurghHouse wrote:
dkl wrote:ucase(Wombat, 1) is actually very much quicker than ucase(wombat)


How much quicker? On my machine 18-20 times quicker! This gives a real incentive to use ucase(wombat, 1)
by BurghHouse
Nov 11, 2013 11:29
Forum: Community Discussion
Topic: New ASCII-only Lcase/Ucase functions?
Replies: 45
Views: 6126

Re: New ASCII-only Lcase/Ucase functions?

After thinking about it, adding a mode parameter to Lcase()/Ucase() instead of adding new keywords is probably better. I'm going to try that. As at v0.090 we now have the mode parameter. My tests show that ucase(Wombat, 1) is actually very much quicker than ucase(wombat) . Which leads to a suggesti...
by BurghHouse
Nov 01, 2013 11:33
Forum: Community Discussion
Topic: Bug in Format()
Replies: 10
Views: 1010

Re: Bug in Format()

The FORMAT function has a lot of downsides. It's not only miss-behaviour in case of big numbers (try numbers > 1e14). Also this stupid m$ syntax is a diss-advantage. I try to avoid it at all. Instead I use the C run-time functions (ie printf, sprintf, ...) or customized functions for monetary strin...
by BurghHouse
Oct 21, 2013 12:22
Forum: Community Discussion
Topic: Bug in Format()
Replies: 10
Views: 1010

Bug in Format()

Code: Select all

print format(100000, "#,##0.00")

gives the result ",100,000.00" - the leading comma is in error. It does the same for 100000000 (10e8) but not for 100.

This bug has existed since about 0.20.0

Go to advanced search