This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to know some info?


This is what I have. But there are some problems, I don't know how could I
know the number of parameters the function receives and the type of the one
returned...

int funcion (int** matriz, int valor)
{
	int i = 0;
	int j = 0;
	int a = 2;

	for (i = 0; i < 65536; i+=512)
	{
		for (j = 0; j < 128; j++)
		{
			matriz[i][j] = matriz[i][j] - valor;
		}
	}

	return a;
}


Andrew Haley wrote:
> 
> johncaponski wrote:
>> Thanks you guys, but I am still trying to make a C program that makes the
>> same as the asm code. Could you please help me a little? I know that it
>> is
>> not very difficult and I almost have it, but I am not completely sure
>> about
>> it.
> 
> Show us what you've got.
> 
> Andrew.
> 
> 

-- 
View this message in context: http://old.nabble.com/How-to-know-some-info--tp26157754p26264862.html
Sent from the gcc - Help mailing list archive at Nabble.com.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]