Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tcc compileOnce
#1
Hi,
The following code is executed multiple times and the variable values will continue to stack. How to reset it?
I need to recompile the code every time it is executed
PS: I have some difficulties in understanding C language programming and pointer variables

Thank you in advance for any suggestions and help!
david

[Image: a.gif]
Macro Tcc2
Code:
Copy      Help
dll- "" $str_add $a $b

__Tcc+ t

int compileOnce
;int compileOnce=32

__Tcc+ t
if !t.f or !compileOnce
,t.Compile("" "add" 0|compileOnce)
,&str_add=t.f

out str_add("hello" " world!")


#ret
char* add(char* a, char* b)
{
,printf("%s: a=%s, b=%s", __func__, a, b);
,strcat(a, b);
,return a;
}


Messages In This Thread
Tcc compileOnce - by Davider - 06-03-2023, 09:06 AM
RE: Tcc compileOnce - by Gintaras - 06-03-2023, 09:43 AM
RE: Tcc compileOnce - by Davider - 06-03-2023, 10:25 AM
RE: Tcc compileOnce - by Gintaras - 06-03-2023, 10:33 AM
RE: Tcc compileOnce - by Davider - 06-03-2023, 10:52 AM
RE: Tcc compileOnce - by Gintaras - 06-03-2023, 11:09 AM
RE: Tcc compileOnce - by Davider - 06-03-2023, 12:37 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)